Skip to content

Commit 9416088

Browse files
committed
Rename a few variables #2193
1 parent d33c29c commit 9416088

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

bundles/org.eclipse.ui.ide/src/org/eclipse/ui/views/markers/internal/ContentGeneratorDescriptor.java

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,8 @@ public class ContentGeneratorDescriptor {
4545
private static final String MARKER_FIELD_REFERENCE = "markerFieldReference"; //$NON-NLS-1$
4646

4747
private IConfigurationElement configurationElement;
48-
private MarkerField[] initialVisible;
48+
private MarkerField[] allFieldsWithoutExtensions;
49+
private MarkerField[] initialVisibleWithoutExtensions;
4950
private Collection<IConfigurationElement> generatorExtensions = new ArrayList<>();
5051

5152
/**
@@ -58,13 +59,13 @@ public ContentGeneratorDescriptor(IConfigurationElement element) {
5859
/**
5960
* Add the groups defined in the receiver to the collection of groups.
6061
*/
61-
private void addDefinedGroups(Collection<MarkerGroup> groupss) {
62+
private void addDefinedGroups(Collection<MarkerGroup> groups) {
6263
// Add the ones in the receiver.
63-
addGroupsFrom(configurationElement, groupss);
64+
addGroupsFrom(configurationElement, groups);
6465
// Add the extensions
6566
Iterator<IConfigurationElement> extensions = generatorExtensions.iterator();
6667
while (extensions.hasNext()) {
67-
addGroupsFrom(extensions.next(), groupss);
68+
addGroupsFrom(extensions.next(), groups);
6869
}
6970
}
7071

@@ -103,7 +104,7 @@ public boolean allTypesSelected(Collection<MarkerType> selectedTypes) {
103104
* @return {@link MarkerField}[]
104105
*/
105106
public MarkerField[] getAllFields() {
106-
List<MarkerField> allFieldsList = new ArrayList<>(Arrays.asList(allFields));
107+
List<MarkerField> allFieldsList = new ArrayList<>(Arrays.asList(allFieldsWithoutExtensions));
107108

108109
Iterator<IConfigurationElement> extensions = generatorExtensions.iterator();
109110
while (extensions.hasNext()) {
@@ -173,7 +174,7 @@ public String getId() {
173174
* @return {@link MarkerField}[]
174175
*/
175176
public MarkerField[] getInitialVisible() {
176-
return initialVisible;
177+
return initialVisibleWithoutExtensions;
177178
}
178179

179180
/**
@@ -296,11 +297,11 @@ public void initializeFromConfigurationElement(
296297
}
297298
}
298299

299-
allFields = new MarkerField[allFieldList.size()];
300-
allFieldList.toArray(allFields);
300+
allFieldsWithoutExtensions = new MarkerField[allFieldList.size()];
301+
allFieldList.toArray(allFieldsWithoutExtensions);
301302

302-
initialVisible = new MarkerField[initialVisibleList.size()];
303-
initialVisibleList.toArray(initialVisible);
303+
initialVisibleWithoutExtensions = new MarkerField[initialVisibleList.size()];
304+
initialVisibleList.toArray(initialVisibleWithoutExtensions);
304305

305306
}
306307

0 commit comments

Comments
 (0)