Skip to content

Commit

Permalink
performance: do in-memory checks first and I/O performing ones later
Browse files Browse the repository at this point in the history
kkolinko review


git-svn-id: https://svn.apache.org/repos/asf/tomcat/trunk@1809141 13f79535-47bb-0310-9956-ffa450edef68
  • Loading branch information
markt-asf committed Sep 21, 2017
1 parent b7e0435 commit 1ae77cf
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ protected final File file(String name, boolean mustExist) {
// If the requested names ends in '/', the Java File API will return a
// matching file if one exists. This isn't what we want as it is not
// consistent with the Servlet spec rules for request mapping.
if (file.isFile() && name.endsWith("/")) {
if (name.endsWith("/") && file.isFile()) {
return null;
}

Expand Down

0 comments on commit 1ae77cf

Please sign in to comment.