@@ -63,25 +63,25 @@ public final class ProjectHelper {
63
63
/**
64
64
* Set of projects (not repositories) without group
65
65
*/
66
- private final Set <Project > projects ;
66
+ private final Set <Project > ungroupedProjects ;
67
67
/**
68
68
* Set of all repositories without group
69
69
*/
70
- private final Set <Project > repositories ;
70
+ private final Set <Project > ungroupedRepositories ;
71
71
/**
72
72
* Set of all projects with group
73
73
*/
74
- private final Set <Project > all_projects = new TreeSet <>();
74
+ private final Set <Project > allProjects = new TreeSet <>();
75
75
/**
76
76
* Set of all repositories with group
77
77
*/
78
- private final Set <Project > all_repositories = new TreeSet <>();
78
+ private final Set <Project > allRepositories = new TreeSet <>();
79
79
80
80
private ProjectHelper (PageConfig cfg ) {
81
81
this .cfg = cfg ;
82
82
groups = new TreeSet <>(cfg .getEnv ().getGroups ());
83
- projects = new TreeSet <>();
84
- repositories = new TreeSet <>();
83
+ ungroupedProjects = new TreeSet <>();
84
+ ungroupedRepositories = new TreeSet <>();
85
85
86
86
populateGroups ();
87
87
}
@@ -139,17 +139,17 @@ public boolean test(Group g) {
139
139
// if no group matches the project, add it to not-grouped projects
140
140
if (copy .isEmpty ()) {
141
141
if (cfg .getEnv ().getProjectRepositoriesMap ().get (project ) == null ) {
142
- projects .add (project );
142
+ ungroupedProjects .add (project );
143
143
} else {
144
- repositories .add (project );
144
+ ungroupedRepositories .add (project );
145
145
}
146
146
}
147
147
}
148
148
149
149
// populate all grouped
150
150
for (Group g : getGroups ()) {
151
- all_projects .addAll (g .getProjects ());
152
- all_repositories .addAll (g .getRepositories ());
151
+ allProjects .addAll (g .getProjects ());
152
+ allRepositories .addAll (g .getRepositories ());
153
153
}
154
154
}
155
155
@@ -232,14 +232,14 @@ public Set<Group> getGroups() {
232
232
* @return filtered ungrouped projects
233
233
*/
234
234
public Set <Project > getProjects () {
235
- return cacheProjects (PROJECT_HELPER_UNGROUPED_PROJECTS , projects );
235
+ return cacheProjects (PROJECT_HELPER_UNGROUPED_PROJECTS , ungroupedProjects );
236
236
}
237
237
238
238
/**
239
239
* @return filtered ungrouped repositories
240
240
*/
241
241
public Set <Project > getRepositories () {
242
- return cacheProjects (PROJECT_HELPER_UNGROUPED_REPOSITORIES , repositories );
242
+ return cacheProjects (PROJECT_HELPER_UNGROUPED_REPOSITORIES , ungroupedRepositories );
243
243
}
244
244
245
245
/**
@@ -268,30 +268,30 @@ public Set<Project> getRepositories(Group g) {
268
268
* @return filtered grouped projects
269
269
*/
270
270
public Set <Project > getGroupedProjects () {
271
- return cacheProjects (PROJECT_HELPER_GROUPED_PROJECTS , all_projects );
271
+ return cacheProjects (PROJECT_HELPER_GROUPED_PROJECTS , allProjects );
272
272
}
273
273
274
274
/**
275
275
* @return filtered grouped repositories
276
276
*/
277
277
public Set <Project > getGroupedRepositories () {
278
- return cacheProjects (PROJECT_HELPER_GROUPED_REPOSITORIES , all_repositories );
278
+ return cacheProjects (PROJECT_HELPER_GROUPED_REPOSITORIES , allRepositories );
279
279
}
280
280
281
281
/**
282
282
* @see #getProjects()
283
283
* @return filtered ungrouped projects
284
284
*/
285
285
public Set <Project > getUngroupedProjects () {
286
- return cacheProjects (PROJECT_HELPER_UNGROUPED_PROJECTS , projects );
286
+ return cacheProjects (PROJECT_HELPER_UNGROUPED_PROJECTS , ungroupedProjects );
287
287
}
288
288
289
289
/**
290
290
* @see #getRepositories()
291
291
* @return filtered ungrouped projects
292
292
*/
293
293
public Set <Project > getUngroupedRepositories () {
294
- return cacheProjects (PROJECT_HELPER_UNGROUPED_REPOSITORIES , repositories );
294
+ return cacheProjects (PROJECT_HELPER_UNGROUPED_REPOSITORIES , ungroupedRepositories );
295
295
}
296
296
297
297
/**
0 commit comments