Skip to content

Commit 676ff75

Browse files
committed
Polish
1 parent fddd7c5 commit 676ff75

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

spring-boot/src/main/java/org/springframework/boot/context/embedded/AbstractEmbeddedServletContainerFactory.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -92,6 +92,10 @@ private File getExplodedWarFileDocumentRoot() {
9292
return null;
9393
}
9494

95+
private File getWarFileDocumentRoot() {
96+
return getArchiveFileDocumentRoot(".war");
97+
}
98+
9599
private File getArchiveFileDocumentRoot(String extension) {
96100
File file = getCodeSourceArchive();
97101
if (this.logger.isDebugEnabled()) {
@@ -104,10 +108,6 @@ private File getArchiveFileDocumentRoot(String extension) {
104108
return null;
105109
}
106110

107-
private File getWarFileDocumentRoot() {
108-
return getArchiveFileDocumentRoot(".war");
109-
}
110-
111111
private File getCommonDocumentRoot() {
112112
for (String commonDocRoot : COMMON_DOC_ROOTS) {
113113
File root = new File(commonDocRoot);

0 commit comments

Comments
 (0)