Enable checkstyle's Indentation module
This commit is contained in:
+1
-3
@@ -46,9 +46,7 @@ public class JWTAuthenticationProvider implements AuthenticationProvider {
|
||||
// TODO:AD This is super unfortunate, but not sure there is a better way when using JSP
|
||||
if(StringUtils.contains(authentication.getRequestedPath(), "/WEB-INF/jsp/")) {
|
||||
logger.warn("BYPASSING AUTH FOR WEB-INF page");
|
||||
} else
|
||||
|
||||
if(!roughlyEqual(path.asString(), authentication.getRequestedPath())) {
|
||||
} else if(!roughlyEqual(path.asString(), authentication.getRequestedPath())) {
|
||||
throw new InsufficientAuthenticationException("Credentials not valid for path " + authentication
|
||||
.getRequestedPath() + ". They are valid for " + path.asString());
|
||||
}
|
||||
|
||||
@@ -140,13 +140,7 @@ public final class FileUtil {
|
||||
}
|
||||
|
||||
private static <T> T timed(FileTask<T> task) {
|
||||
// long t0 = System.nanoTime();
|
||||
// try {
|
||||
return task.execute();
|
||||
// } finally {
|
||||
// long t1 = System.nanoTime();
|
||||
// LOG.debug((t1 - t0) / 1000L + " microsec, " + task);
|
||||
// }
|
||||
}
|
||||
|
||||
private abstract static class FileTask<T> {
|
||||
|
||||
@@ -24,6 +24,7 @@
|
||||
<module name="EmptyStatement"/>
|
||||
<module name="EqualsAvoidNull"/>
|
||||
<module name="EqualsHashCode"/>
|
||||
<module name="Indentation"/>
|
||||
<module name="InnerAssignment"/>
|
||||
<module name="RedundantImport"/>
|
||||
<module name="StringLiteralEquality"/>
|
||||
|
||||
Reference in New Issue
Block a user