@@ -115,10 +115,10 @@ public class Categories extends Suite {
115
115
}
116
116
117
117
public static class CategoryFilter extends Filter {
118
- private final Set <Class <?>> fIncluded ;
119
- private final Set <Class <?>> fExcluded ;
120
- private final boolean fIncludedAny ;
121
- private final boolean fExcludedAny ;
118
+ private final Set <Class <?>> included ;
119
+ private final Set <Class <?>> excluded ;
120
+ private final boolean includedAny ;
121
+ private final boolean excludedAny ;
122
122
123
123
public static CategoryFilter include (boolean matchAny , Class <?>... categories ) {
124
124
if (hasNull (categories )) {
@@ -157,10 +157,10 @@ public static CategoryFilter categoryFilter(boolean matchAnyInclusions, Set<Clas
157
157
158
158
protected CategoryFilter (boolean matchAnyIncludes , Set <Class <?>> includes ,
159
159
boolean matchAnyExcludes , Set <Class <?>> excludes ) {
160
- fIncludedAny = matchAnyIncludes ;
161
- fExcludedAny = matchAnyExcludes ;
162
- fIncluded = copyAndRefine (includes );
163
- fExcluded = copyAndRefine (excludes );
160
+ includedAny = matchAnyIncludes ;
161
+ excludedAny = matchAnyExcludes ;
162
+ included = copyAndRefine (includes );
163
+ excluded = copyAndRefine (excludes );
164
164
}
165
165
166
166
/**
@@ -186,9 +186,9 @@ public String describe() {
186
186
*/
187
187
@ Override public String toString () {
188
188
StringBuilder description = new StringBuilder ("categories " )
189
- .append (fIncluded .isEmpty () ? "[all]" : fIncluded );
190
- if (!fExcluded .isEmpty ()) {
191
- description .append (" - " ).append (fExcluded );
189
+ .append (included .isEmpty () ? "[all]" : included );
190
+ if (!excluded .isEmpty ()) {
191
+ description .append (" - " ).append (excluded );
192
192
}
193
193
return description .toString ();
194
194
}
@@ -213,29 +213,29 @@ private boolean hasCorrectCategoryAnnotation(Description description) {
213
213
214
214
// If a child has no categories, immediately return.
215
215
if (childCategories .isEmpty ()) {
216
- return fIncluded .isEmpty ();
216
+ return included .isEmpty ();
217
217
}
218
218
219
- if (!fExcluded .isEmpty ()) {
220
- if (fExcludedAny ) {
221
- if (matchesAnyParentCategories (childCategories , fExcluded )) {
219
+ if (!excluded .isEmpty ()) {
220
+ if (excludedAny ) {
221
+ if (matchesAnyParentCategories (childCategories , excluded )) {
222
222
return false ;
223
223
}
224
224
} else {
225
- if (matchesAllParentCategories (childCategories , fExcluded )) {
225
+ if (matchesAllParentCategories (childCategories , excluded )) {
226
226
return false ;
227
227
}
228
228
}
229
229
}
230
230
231
- if (fIncluded .isEmpty ()) {
231
+ if (included .isEmpty ()) {
232
232
// Couldn't be excluded, and with no suite's included categories treated as should run.
233
233
return true ;
234
234
} else {
235
- if (fIncludedAny ) {
236
- return matchesAnyParentCategories (childCategories , fIncluded );
235
+ if (includedAny ) {
236
+ return matchesAnyParentCategories (childCategories , included );
237
237
} else {
238
- return matchesAllParentCategories (childCategories , fIncluded );
238
+ return matchesAllParentCategories (childCategories , included );
239
239
}
240
240
}
241
241
}
0 commit comments