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:
+1
-1
@@ -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);
|
||||
}
|
||||
|
||||
+1
-1
@@ -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());
|
||||
|
||||
+1
-2
@@ -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 = "";
|
||||
|
||||
Reference in New Issue
Block a user