summaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit.junit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2023-09-22 01:30:04 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2023-09-25 22:06:13 +0200
commitd56ae55c836968e09d1ad887d4180ff6bccc5be7 (patch)
tree1a52e1e59f0b10cc5311485a56e56158abe07db5 /org.eclipse.jgit.junit
parenta7edc7889c6f0a6441bdd5e030125dd795abfd2c (diff)
downloadjgit-d56ae55c836968e09d1ad887d4180ff6bccc5be7.tar.gz
jgit-d56ae55c836968e09d1ad887d4180ff6bccc5be7.zip
[errorprone] Fix BadImport
See https://errorprone.info/bugpattern/BadImport Change-Id: Iea98b15862ed0bc4bcad759a7240133769680808
Diffstat (limited to 'org.eclipse.jgit.junit')
-rw-r--r--org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/Assert.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/Assert.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/Assert.java
index 96713788f8..6e0a8c79ab 100644
--- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/Assert.java
+++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/Assert.java
@@ -9,8 +9,6 @@
*/
package org.eclipse.jgit.junit;
-import static java.lang.Boolean.valueOf;
-
/**
* Assertion class
*/
@@ -25,7 +23,8 @@ public class Assert {
* actual value
*/
public static void assertEquals(boolean expect, boolean actual) {
- org.junit.Assert.assertEquals(valueOf(expect), valueOf(actual));
+ org.junit.Assert.assertEquals(Boolean.valueOf(expect),
+ Boolean.valueOf(actual));
}
/**
@@ -41,6 +40,7 @@ public class Assert {
public static void assertEquals(String message, boolean expect,
boolean actual) {
org.junit.Assert
- .assertEquals(message, valueOf(expect), valueOf(actual));
+ .assertEquals(message, Boolean.valueOf(expect),
+ Boolean.valueOf(actual));
}
}