Skip to content

Commit ec5645b

Browse files
committed
Remove unused defaultApplicationConfiguration method
1 parent b2245c7 commit ec5645b

File tree

1 file changed

+0
-19
lines changed

1 file changed

+0
-19
lines changed

spring-boot-testjars/src/main/java/org/springframework/experimental/boot/server/exec/CommonsExecWebServerFactoryBean.java

Lines changed: 0 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -182,25 +182,6 @@ public void setBeanName(String beanName) {
182182
this.classpath.entries(new ScanningClasspathEntry(basePath));
183183
}
184184

185-
private void defaultApplicationConfiguration(String beanName, String extension) {
186-
String existingResourceName = "testjars/" + beanName + "/application." + extension;
187-
String classpathResourceName = "application." + extension;
188-
ResourceClasspathEntry defaultApplicationConfig = new ResourceClasspathEntry(existingResourceName,
189-
classpathResourceName);
190-
if (defaultApplicationConfig.exists()) {
191-
if (logger.isDebugEnabled()) {
192-
logger.debug("Adding default resource " + existingResourceName + " as " + classpathResourceName);
193-
}
194-
classpath((cp) -> cp.entries(defaultApplicationConfig));
195-
}
196-
else {
197-
if (logger.isDebugEnabled()) {
198-
logger.debug("The default resource was not found " + existingResourceName
199-
+ " and will not be added to the classpath as " + classpathResourceName);
200-
}
201-
}
202-
}
203-
204185
@Override
205186
public void destroy() throws Exception {
206187
if (this.webServer != null) {

0 commit comments

Comments
 (0)