Skip to content

Commit 65c3101

Browse files
author
Vincent Potucek
committed
RemoveUnusedPrivateMethods
1 parent 57da58d commit 65c3101

File tree

4 files changed

+1
-24
lines changed

4 files changed

+1
-24
lines changed

framework-docs/src/main/java/org/springframework/docs/integration/cache/cachestoreconfigurationnoop/CacheConfiguration.java

-8
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,6 @@
2626
@Configuration
2727
class CacheConfiguration {
2828

29-
private CacheManager jdkCache() {
30-
return null;
31-
}
32-
33-
private CacheManager gemfireCache() {
34-
return null;
35-
}
36-
3729
// tag::snippet[]
3830
@Bean
3931
CacheManager cacheManager(CacheManager jdkCache, CacheManager gemfireCache) {

framework-docs/src/main/java/org/springframework/docs/web/webmvc/mvcconfig/mvcconfigpathmatching/WebConfiguration.java

-7
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
import org.springframework.web.method.HandlerTypePredicate;
66
import org.springframework.web.servlet.config.annotation.PathMatchConfigurer;
77
import org.springframework.web.servlet.config.annotation.WebMvcConfigurer;
8-
import org.springframework.web.util.pattern.PathPatternParser;
98

109
// tag::snippet[]
1110
@Configuration
@@ -15,11 +14,5 @@ public class WebConfiguration implements WebMvcConfigurer {
1514
public void configurePathMatch(PathMatchConfigurer configurer) {
1615
configurer.addPathPrefix("/api", HandlerTypePredicate.forAnnotation(RestController.class));
1716
}
18-
19-
private PathPatternParser patternParser() {
20-
PathPatternParser pathPatternParser = new PathPatternParser();
21-
// ...
22-
return pathPatternParser;
23-
}
2417
}
2518
// end::snippet[]

init.gradle

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ rootProject {
1515
// activeRecipe("org.openrewrite.java.migrate.lang.var.UseVarForObject")
1616
// activeRecipe("org.openrewrite.java.migrate.lang.var.UseVarForPrimitive")
1717
// activeRecipe("org.openrewrite.staticanalysis.FinalizeLocalVariables")
18-
activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedLocalVariables")
18+
// activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedLocalVariables")
1919
// activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateFields")
2020
activeRecipe("org.openrewrite.staticanalysis.RemoveUnusedPrivateMethods")
2121
setExportDatatables(true)

spring-context/src/test/java/org/springframework/beans/factory/xml/XmlBeanFactoryTestTypes.java

-8
Original file line numberDiff line numberDiff line change
@@ -215,14 +215,6 @@ public DerivedConstructorDependenciesBean(TestBean spouse1, TestBean spouse2, In
215215
setAge(age);
216216
setName(name);
217217
}
218-
219-
private void init() {
220-
this.initialized = true;
221-
}
222-
223-
private void destroy() {
224-
this.destroyed = true;
225-
}
226218
}
227219

228220

0 commit comments

Comments
 (0)