Skip to content

Commit

Permalink
Assign GlobalConfiguration initializer to unused variable (#2742)
Browse files Browse the repository at this point in the history
(This silences some errorprone static analysis about calling constructors w/o using the new object.)
  • Loading branch information
kluever committed Aug 30, 2022
1 parent 4b8042e commit 530558a
Showing 1 changed file with 1 addition and 1 deletion.
Expand Up @@ -43,7 +43,7 @@ private IMockitoConfiguration createConfig() {
}

public static void validate() {
new GlobalConfiguration();
GlobalConfiguration unused = new GlobalConfiguration();
}

public org.mockito.plugins.AnnotationEngine tryGetPluginAnnotationEngine() {
Expand Down

0 comments on commit 530558a

Please sign in to comment.