File tree 5 files changed +30
-10
lines changed
spring-core/src/test/java/org/springframework/core
spring-expression/src/test/java/org/springframework/expression/spel/testresources
spring-oxm/src/test/java/org/springframework/oxm/jaxb
spring-webmvc/src/main/java/org/springframework/web/servlet/resource
5 files changed +30
-10
lines changed Original file line number Diff line number Diff line change
1
+ initscript {
2
+ repositories {
3
+ maven { url " https://plugins.gradle.org/m2" }
4
+ }
5
+ dependencies { classpath(" org.openrewrite:plugin:7.2.1" ) }
6
+ }
7
+ rootProject {
8
+ plugins. apply(org.openrewrite.gradle.RewritePlugin )
9
+ dependencies {
10
+ rewrite(" org.openrewrite.recipe:rewrite-migrate-java:3.4.0" )
11
+ }
12
+ rewrite {
13
+ // activeRecipe("org.openrewrite.java.migrate.UpgradeToJava17")
14
+ // activeRecipe("org.openrewrite.java.migrate.UpgradeToJava21")
15
+ // activeRecipe("org.openrewrite.java.migrate.lang.var.UseVarForObject")
16
+ // activeRecipe("org.openrewrite.java.migrate.lang.var.UseVarForPrimitive")
17
+ // activeRecipe("org.openrewrite.staticanalysis.FinalizeLocalVariables")
18
+ // activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedLocalVariables")
19
+ activeRecipe(" org.openrewrite.staticanalysis.RemoveUnusedPrivateFields" )
20
+ // activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods")
21
+ setExportDatatables(true )
22
+ }
23
+ afterEvaluate {
24
+ if (repositories. isEmpty()) {
25
+ repositories {
26
+ mavenCentral()
27
+ }
28
+ }
29
+ }
30
+ }
Original file line number Diff line number Diff line change @@ -802,8 +802,6 @@ public static class GenericBroadcasterImpl implements Broadcaster {
802
802
public abstract static class GenericEventBroadcasterImpl <T extends Event >
803
803
extends GenericBroadcasterImpl implements EventBroadcaster {
804
804
805
- private Class <T >[] subscribingEvents ;
806
-
807
805
private Channel <T > channel ;
808
806
809
807
/**
Original file line number Diff line number Diff line change @@ -37,7 +37,6 @@ public class Inventor {
37
37
public String publicName ;
38
38
private PlaceOfBirth placeOfBirth ;
39
39
private Date birthdate ;
40
- private int sinNumber ;
41
40
private String nationality ;
42
41
private String [] inventions ;
43
42
public String randomField ;
Original file line number Diff line number Diff line change @@ -377,15 +377,11 @@ public jakarta.xml.bind.Unmarshaller createUnmarshaller() {
377
377
@ XmlRootElement
378
378
@ SuppressWarnings ("unused" )
379
379
public static class DummyRootElement {
380
-
381
- private DummyType t = new DummyType ();
382
380
}
383
381
384
382
@ XmlType
385
383
@ SuppressWarnings ("unused" )
386
384
public static class DummyType {
387
-
388
- private String s = "Hello" ;
389
385
}
390
386
391
387
@ SuppressWarnings ("unused" )
Original file line number Diff line number Diff line change 53
53
import org .springframework .util .StringUtils ;
54
54
import org .springframework .util .StringValueResolver ;
55
55
import org .springframework .web .HttpRequestHandler ;
56
- import org .springframework .web .accept .ContentNegotiationManager ;
57
56
import org .springframework .web .context .request .ServletWebRequest ;
58
57
import org .springframework .web .context .support .ServletContextResource ;
59
58
import org .springframework .web .cors .CorsConfiguration ;
@@ -123,8 +122,6 @@ public class ResourceHttpRequestHandler extends WebContentGenerator
123
122
124
123
private @ Nullable ResourceRegionHttpMessageConverter resourceRegionHttpMessageConverter ;
125
124
126
- private @ Nullable ContentNegotiationManager contentNegotiationManager ;
127
-
128
125
private final Map <String , MediaType > mediaTypes = new HashMap <>(4 );
129
126
130
127
private @ Nullable CorsConfiguration corsConfiguration ;
You can’t perform that action at this time.
0 commit comments