File tree 2 files changed +4
-3
lines changed
src/main/java/org/openrewrite/java/migrate
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ public String getDescription() {
46
46
@ Override
47
47
protected TreeVisitor <?, ExecutionContext > getSingleSourceApplicableTest () {
48
48
return Applicability .and (
49
- new UsesJavaVersion <>(11 ),
49
+ // new UsesJavaVersion<>(11),
50
50
new UsesType <>(LOMBOK_VAL ));
51
51
}
52
52
Original file line number Diff line number Diff line change 15
15
*/
16
16
package org .openrewrite .java .migrate .search ;
17
17
18
+ import io .micrometer .core .instrument .util .StringUtils ;
18
19
import lombok .EqualsAndHashCode ;
19
20
import lombok .Value ;
20
21
import org .openrewrite .ExecutionContext ;
@@ -43,12 +44,12 @@ public String getDisplayName() {
43
44
44
45
@ Override
45
46
public String getDescription () {
46
- return super . getDescription () ;
47
+ return "A diagnostic for studying the applicability of Java version constraints." ;
47
48
}
48
49
49
50
@ Override
50
51
protected @ Nullable TreeVisitor <?, ExecutionContext > getSingleSourceApplicableTest () {
51
- return whenUsesType == null ? null : new UsesType <>(whenUsesType );
52
+ return StringUtils . isBlank ( whenUsesType ) ? null : new UsesType <>(whenUsesType );
52
53
}
53
54
54
55
@ Override
You can’t perform that action at this time.
0 commit comments