Fixed: Checkstyle, variable must be private and have accessor methods (OFBIZ-11963)
Removes RESOURCE, not used anywhere Replaces keyseparator by KEY_SEPARATOR in Groovy files that use it We need to be careful about Groovy files that use variables. At least Eclipse Grooby plugin is not able to check that in an easy way (ill-names vars are though underlined)
This commit is contained in:
@@ -31,7 +31,7 @@ context.filesFound = factory.getFilesFound()
|
||||
context.componentNamesFound = factory.getComponentNamesFound()
|
||||
context.duplicatedLocalesLabels = factory.getDuplicatedLocalesLabels()
|
||||
context.duplicatedLocalesLabelsList = factory.getDuplicatedLocalesLabelsList()
|
||||
context.keySeparator = factory.keySeparator
|
||||
context.keySeparator = factory.KEY_SEPARATOR
|
||||
if ("Y".equals(parameters.onlyNotUsedLabels)) {
|
||||
LabelReferences refsObject = new LabelReferences(delegator, factory)
|
||||
Map references = refsObject.getLabelReferences()
|
||||
@@ -39,4 +39,4 @@ if ("Y".equals(parameters.onlyNotUsedLabels)) {
|
||||
context.referencesList = references.keySet()
|
||||
}
|
||||
|
||||
context.totalLabelsCount = allLabels.size();
|
||||
context.totalLabelsCount = allLabels.size();
|
||||
|
||||
@@ -28,6 +28,6 @@ context.filesFound = factory.getFilesFound()
|
||||
context.componentNamesFound = factory.getComponentNamesFound()
|
||||
|
||||
if (parameters.sourceKey && parameters.sourceFileName) {
|
||||
context.label = context.labels.get(parameters.sourceKey + LabelManagerFactory.keySeparator + parameters.sourceFileName)
|
||||
context.label = context.labels.get(parameters.sourceKey + LabelManagerFactory.KEY_SEPARATOR + parameters.sourceFileName)
|
||||
context.titleProperty = "WebtoolsLabelManagerUpdate"
|
||||
}
|
||||
|
||||
@@ -30,7 +30,7 @@ context.filesFound = factory.getFilesFound()
|
||||
context.componentNamesFound = factory.getComponentNamesFound()
|
||||
context.duplicatedLocalesLabels = factory.getDuplicatedLocalesLabels()
|
||||
context.duplicatedLocalesLabelsList = factory.getDuplicatedLocalesLabelsList()
|
||||
context.keySeparator = factory.keySeparator
|
||||
context.keySeparator = factory.KEY_SEPARATOR
|
||||
LabelReferences refsObject = new LabelReferences(delegator, factory)
|
||||
Map references = refsObject.getLabelReferences()
|
||||
context.references = references
|
||||
|
||||
Reference in New Issue
Block a user