File tree Expand file tree Collapse file tree 5 files changed +6
-5
lines changed
junit-jupiter-params/src/main/java/org/junit/jupiter/params
junit-platform-commons/src/main/java/org/junit/platform/commons/util
platform-tooling-support-tests/src/main/java/platform/tooling/support Expand file tree Collapse file tree 5 files changed +6
-5
lines changed Original file line number Diff line number Diff line change 36
36
</module >
37
37
<module name =" HideUtilityClassConstructor" />
38
38
<module name =" ModifierOrder" />
39
+ <module name =" EqualsAvoidNull" />
39
40
</module >
40
41
41
42
<module name =" JavadocPackage" />
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ static ParameterizedInvocationNameFormatter create(ExtensionContext extensionCon
57
57
ParameterizedDeclarationContext <?> declarationContext ) {
58
58
59
59
String name = declarationContext .getDisplayNamePattern ();
60
- String pattern = name .equals (DEFAULT_DISPLAY_NAME )
60
+ String pattern = DEFAULT_DISPLAY_NAME .equals (name )
61
61
? extensionContext .getConfigurationParameter (DISPLAY_NAME_PATTERN_KEY ) //
62
62
.orElse (DEFAULT_DISPLAY_NAME_PATTERN )
63
63
: name ;
Original file line number Diff line number Diff line change @@ -381,7 +381,7 @@ private static boolean isRepeatableAnnotationContainer(Class<? extends Annotatio
381
381
return repeatableAnnotationContainerCache .computeIfAbsent (candidateContainerType , candidate -> {
382
382
// @formatter:off
383
383
Repeatable repeatable = Arrays .stream (candidate .getMethods ())
384
- .filter (attribute -> attribute .getName (). equals ( "value" ) && attribute .getReturnType ().isArray ())
384
+ .filter (attribute -> "value" . equals ( attribute .getName ()) && attribute .getReturnType ().isArray ())
385
385
.findFirst ()
386
386
.map (attribute -> attribute .getReturnType ().getComponentType ().getAnnotation (Repeatable .class ))
387
387
.orElse (null );
Original file line number Diff line number Diff line change @@ -223,7 +223,7 @@ List<Class<?>> scan(ModuleReference reference) {
223
223
// @formatter:off
224
224
return names .filter (name -> name .endsWith (".class" ))
225
225
.map (this ::className )
226
- .filter (name -> !name . equals ( "module-info" ))
226
+ .filter (name -> !"module-info" . equals ( name ))
227
227
.filter (classFilter ::match )
228
228
.<Class <?>> map (this ::loadClassUnchecked )
229
229
.filter (classFilter ::match )
Original file line number Diff line number Diff line change @@ -51,8 +51,8 @@ public static List<String> loadModuleDirectoryNames() {
51
51
.filter (Matcher ::matches ) //
52
52
.map (matcher -> matcher .group (1 )) //
53
53
.filter (name -> name .startsWith ("junit-" )) //
54
- .filter (name -> !name . equals ( "junit-bom" )) //
55
- .filter (name -> !name . equals ( "junit-platform-console-standalone" )).toList ();
54
+ .filter (name -> !"junit-bom" . equals ( name )) //
55
+ .filter (name -> !"junit-platform-console-standalone" . equals ( name )).toList ();
56
56
}
57
57
catch (Exception e ) {
58
58
throw new AssertionError ("loading module directory names failed: " + SETTINGS_GRADLE );
You can’t perform that action at this time.
0 commit comments