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:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user