Improved: Updated case indentation to 0 for all switch statements in framework component. Also done formatting changes as per checkstyle best practices.

(OFBIZ-11904)
This commit is contained in:
Suraj Khurana
2020-07-25 13:50:37 +05:30
parent 4739019732
commit f4f2722d36
67 changed files with 977 additions and 945 deletions
@@ -1138,8 +1138,7 @@ public final class LoginWorker {
String headerValue = request.getHeader(httpHeader);
if (UtilValidate.isNotEmpty(headerValue)) {
return LoginWorker.loginUserWithUserLoginId(request, response, headerValue);
}
else {
} else {
// empty headerValue is not good
return "error";
}
@@ -1162,8 +1161,7 @@ public final class LoginWorker {
String remoteUserId = request.getRemoteUser();
if (UtilValidate.isNotEmpty(remoteUserId)) {
return LoginWorker.loginUserWithUserLoginId(request, response, remoteUserId);
}
else {
} else {
// empty remoteUserId is not good
return "error";
}
@@ -62,8 +62,7 @@ public final class WebSiteWorker {
GenericValue result = null;
try {
result = EntityQuery.use(delegator).from("WebSite").where("webSiteId", webSiteId).cache(useCache).queryOne();
}
catch (GenericEntityException e) {
} catch (GenericEntityException e) {
Debug.logError("Error looking up website with id " + webSiteId, MODULE);
}
return result;