Merge branch '1.5.x'

pull/10948/head
Stephane Nicoll 7 years ago
commit 424793d806

@ -193,7 +193,7 @@ public class FileSystemWatcher {
} }
this.watchThread = null; this.watchThread = null;
} }
if (Thread.currentThread() != thread) { if (thread != null && Thread.currentThread() != thread) {
try { try {
thread.join(); thread.join();
} }

@ -29,6 +29,7 @@ import java.util.Set;
import javax.annotation.processing.AbstractProcessor; import javax.annotation.processing.AbstractProcessor;
import javax.annotation.processing.RoundEnvironment; import javax.annotation.processing.RoundEnvironment;
import javax.annotation.processing.SupportedAnnotationTypes; import javax.annotation.processing.SupportedAnnotationTypes;
import javax.lang.model.SourceVersion;
import javax.lang.model.element.AnnotationMirror; import javax.lang.model.element.AnnotationMirror;
import javax.lang.model.element.AnnotationValue; import javax.lang.model.element.AnnotationValue;
import javax.lang.model.element.Element; import javax.lang.model.element.Element;
@ -80,6 +81,11 @@ public class AutoConfigureAnnotationProcessor extends AbstractProcessor {
"org.springframework.boot.autoconfigure.AutoConfigureOrder"); "org.springframework.boot.autoconfigure.AutoConfigureOrder");
} }
@Override
public SourceVersion getSupportedSourceVersion() {
return SourceVersion.latestSupported();
}
@Override @Override
public boolean process(Set<? extends TypeElement> annotations, public boolean process(Set<? extends TypeElement> annotations,
RoundEnvironment roundEnv) { RoundEnvironment roundEnv) {

Loading…
Cancel
Save