/** * Creates a new instance of the {@link ProjectProblem} with warning {@link Severity}. * @param displayName the project problem display name. * @param description the project problem description. * @param resolver the {@link ProjectProblemResolver} to resolve the problem. * @return a new instance of {@link ProjectProblem} */ @NonNull public static ProjectProblem createWarning( @NonNull final String displayName, @NonNull final String description, @NonNull final ProjectProblemResolver resolver) { return new ProjectProblem(Severity.WARNING, displayName,description,resolver); }
/** * Creates a new unresolvable instance of the {@link ProjectProblem} with warning {@link Severity}. * @param displayName the project problem display name. * @param description the project problem description. * @return a new instance of {@link ProjectProblem} * @since 1.74 */ @NonNull public static ProjectProblem createWarning( @NonNull final String displayName, @NonNull final String description) { return new ProjectProblem(Severity.WARNING, displayName, description, null); }
/** * Creates a new instance of the {@link ProjectProblem} with error {@link Severity}. * @param displayName the project problem display name. * @param description the project problem description. * @param resolver the {@link ProjectProblemResolver} to resolve the problem. * @return a new instance of {@link ProjectProblem} */ @NonNull public static ProjectProblem createError( @NonNull final String displayName, @NonNull final String description, @NonNull final ProjectProblemResolver resolver) { return new ProjectProblem(Severity.ERROR, displayName,description,resolver); }
/** * Creates a new unresolvable instance of the {@link ProjectProblem} with error {@link Severity}. * @param displayName the project problem display name. * @param description the project problem description. * @return a new instance of {@link ProjectProblem} * @since 1.74 */ @NonNull public static ProjectProblem createError( @NonNull final String displayName, @NonNull final String description) { return new ProjectProblem(Severity.ERROR, displayName, description, null); }