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
@@ -300,7 +300,7 @@ public class ArtifactInfoFactory {
public ArtifactInfoBase getArtifactInfoByUniqueIdAndType(String uniqueId, String type) {
if (uniqueId.contains("#")) {
int poundIndex = uniqueId.indexOf('#');
return getArtifactInfoByNameAndType(uniqueId.substring(poundIndex+1), uniqueId.substring(0, poundIndex), type);
return getArtifactInfoByNameAndType(uniqueId.substring(poundIndex + 1), uniqueId.substring(0, poundIndex), type);
} else {
return getArtifactInfoByNameAndType(uniqueId, null, type);
}
@@ -62,7 +62,7 @@ public class ControllerViewArtifactInfo extends ArtifactInfoBase {
String fullScreenName = this.viewInfoMap.page;
if (UtilValidate.isNotEmpty(fullScreenName)) {
int poundIndex = fullScreenName.indexOf('#');
this.screenCalledByThisView = this.aif.getScreenWidgetArtifactInfo(fullScreenName.substring(poundIndex+1), fullScreenName.substring(0, poundIndex));
this.screenCalledByThisView = this.aif.getScreenWidgetArtifactInfo(fullScreenName.substring(poundIndex + 1), fullScreenName.substring(0, poundIndex));
if (this.screenCalledByThisView != null) {
// add the reverse association
UtilMisc.addToSortedSetInMap(this, aif.allViewInfosReferringToScreen, this.screenCalledByThisView.getUniqueId());
@@ -135,8 +135,7 @@ public class LabelManagerFactory {
|| labelKey.contains("check.")
|| (labelKey.length() == 2) // These are languages Ids
|| labelKey.contains("pt_") // These are languages Ids
|| labelKey.contains("en_") // These are languages Ids
)) {
|| labelKey.contains("en_"))) {
continue; // OFBIZ-8154 WIP
}
String labelComment = "";