Skip to content

Commit 424793d

Browse files
committed
Merge branch '1.5.x'
2 parents dd3dde3 + f975e8d commit 424793d

File tree

2 files changed

+7
-1
lines changed

2 files changed

+7
-1
lines changed

spring-boot-project/spring-boot-devtools/src/main/java/org/springframework/boot/devtools/filewatch/FileSystemWatcher.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -193,7 +193,7 @@ void stopAfter(int remainingScans) {
193193
}
194194
this.watchThread = null;
195195
}
196-
if (Thread.currentThread() != thread) {
196+
if (thread != null && Thread.currentThread() != thread) {
197197
try {
198198
thread.join();
199199
}

spring-boot-project/spring-boot-tools/spring-boot-autoconfigure-processor/src/main/java/org/springframework/boot/autoconfigureprocessor/AutoConfigureAnnotationProcessor.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import javax.annotation.processing.AbstractProcessor;
3030
import javax.annotation.processing.RoundEnvironment;
3131
import javax.annotation.processing.SupportedAnnotationTypes;
32+
import javax.lang.model.SourceVersion;
3233
import javax.lang.model.element.AnnotationMirror;
3334
import javax.lang.model.element.AnnotationValue;
3435
import javax.lang.model.element.Element;
@@ -80,6 +81,11 @@ protected void addAnnotations(Map<String, String> annotations) {
8081
"org.springframework.boot.autoconfigure.AutoConfigureOrder");
8182
}
8283

84+
@Override
85+
public SourceVersion getSupportedSourceVersion() {
86+
return SourceVersion.latestSupported();
87+
}
88+
8389
@Override
8490
public boolean process(Set<? extends TypeElement> annotations,
8591
RoundEnvironment roundEnv) {

0 commit comments

Comments
 (0)