Kris De Volder
2020-10-01 12:13:39 -07:00
parent afe842bcd1
commit f5cb24f691
2 changed files with 7 additions and 3 deletions

View File

@@ -27,11 +27,15 @@ public class BootValidationProblemType implements ProblemType {
private String label;
private String description;
public static final BootValidationProblemType MISSING_CONFIGURATION_PROCESSOR = MissingConfigurationProcessorRule.PROBLEM_ID;
public static List<ProblemType> values() {
synchronized (problemTypes) {
return ImmutableList.copyOf(problemTypes);
}
}
public BootValidationProblemType(String id, ProblemSeverity defaultSeverity, String label, String description) {
this.id = id;

View File

@@ -53,13 +53,13 @@ import org.springsource.ide.eclipse.commons.livexp.util.ExceptionUtil;
public class MissingConfigurationProcessorRule extends BootValidationRule {
private static final String SPRING_BOOT_CONFIGURATION_PROCESSOR = "spring-boot-configuration-processor";
private static final MavenCoordinates DEP_CONFIGURATION_PROCESSOR =
new MavenCoordinates("org.springframework.boot", SPRING_BOOT_CONFIGURATION_PROCESSOR, null);
public static final BootValidationProblemType PROBLEM_ID = new BootValidationProblemType("MISSING_CONFIGURATION_PROCESSOR", ProblemSeverity.WARNING,
"Missing Configuration Processor",
"When using @ConfigurationProperties, it is recommended to add the Spring Boot Configuration Processor to a project's classpath"
);
private static final MavenCoordinates DEP_CONFIGURATION_PROCESSOR =
new MavenCoordinates("org.springframework.boot", SPRING_BOOT_CONFIGURATION_PROCESSOR, null);
private static final IMarkerResolutionGenerator2 QUICK_FIX = new IMarkerResolutionGenerator2() {
@Override