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
|
// 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/")) {
|
if(StringUtils.contains(authentication.getRequestedPath(), "/WEB-INF/jsp/")) {
|
||||||
logger.warn("BYPASSING AUTH FOR WEB-INF page");
|
logger.warn("BYPASSING AUTH FOR WEB-INF page");
|
||||||
} else
|
} else if(!roughlyEqual(path.asString(), authentication.getRequestedPath())) {
|
||||||
|
|
||||||
if(!roughlyEqual(path.asString(), authentication.getRequestedPath())) {
|
|
||||||
throw new InsufficientAuthenticationException("Credentials not valid for path " + authentication
|
throw new InsufficientAuthenticationException("Credentials not valid for path " + authentication
|
||||||
.getRequestedPath() + ". They are valid for " + path.asString());
|
.getRequestedPath() + ". They are valid for " + path.asString());
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -140,13 +140,7 @@ public final class FileUtil {
|
|||||||
}
|
}
|
||||||
|
|
||||||
private static <T> T timed(FileTask<T> task) {
|
private static <T> T timed(FileTask<T> task) {
|
||||||
// long t0 = System.nanoTime();
|
|
||||||
// try {
|
|
||||||
return task.execute();
|
return task.execute();
|
||||||
// } finally {
|
|
||||||
// long t1 = System.nanoTime();
|
|
||||||
// LOG.debug((t1 - t0) / 1000L + " microsec, " + task);
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
|
|
||||||
private abstract static class FileTask<T> {
|
private abstract static class FileTask<T> {
|
||||||
|
|||||||
@@ -24,6 +24,7 @@
|
|||||||
<module name="EmptyStatement"/>
|
<module name="EmptyStatement"/>
|
||||||
<module name="EqualsAvoidNull"/>
|
<module name="EqualsAvoidNull"/>
|
||||||
<module name="EqualsHashCode"/>
|
<module name="EqualsHashCode"/>
|
||||||
|
<module name="Indentation"/>
|
||||||
<module name="InnerAssignment"/>
|
<module name="InnerAssignment"/>
|
||||||
<module name="RedundantImport"/>
|
<module name="RedundantImport"/>
|
||||||
<module name="StringLiteralEquality"/>
|
<module name="StringLiteralEquality"/>
|
||||||
|
|||||||
Reference in New Issue
Block a user