Skip to content

Commit 8b2ed72

Browse files
committed
AboutJavaVersion
1 parent 492f648 commit 8b2ed72

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

src/main/java/org/openrewrite/java/migrate/lombok/LombokValToFinalVar.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ public String getDescription() {
4646
@Override
4747
protected TreeVisitor<?, ExecutionContext> getSingleSourceApplicableTest() {
4848
return Applicability.and(
49-
new UsesJavaVersion<>(11),
49+
// new UsesJavaVersion<>(11),
5050
new UsesType<>(LOMBOK_VAL));
5151
}
5252

src/main/java/org/openrewrite/java/migrate/search/AboutJavaVersion.java

+3-2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@
1515
*/
1616
package org.openrewrite.java.migrate.search;
1717

18+
import io.micrometer.core.instrument.util.StringUtils;
1819
import lombok.EqualsAndHashCode;
1920
import lombok.Value;
2021
import org.openrewrite.ExecutionContext;
@@ -43,12 +44,12 @@ public String getDisplayName() {
4344

4445
@Override
4546
public String getDescription() {
46-
return super.getDescription();
47+
return "A diagnostic for studying the applicability of Java version constraints.";
4748
}
4849

4950
@Override
5051
protected @Nullable TreeVisitor<?, ExecutionContext> getSingleSourceApplicableTest() {
51-
return whenUsesType == null ? null : new UsesType<>(whenUsesType);
52+
return StringUtils.isBlank(whenUsesType) ? null : new UsesType<>(whenUsesType);
5253
}
5354

5455
@Override

0 commit comments

Comments
 (0)