FilterSpec: Use BigInteger.ZERO instead of valueOf(0)
This just simplifies a bit by avoiding an unneeded method call. Change-Id: I6d8d2fc512d8f8a82da73c355017d0abf833a13b
This commit is contained in:
parent
3c807e0158
commit
86aa6deff4
|
@ -10,6 +10,7 @@
|
||||||
|
|
||||||
package org.eclipse.jgit.transport;
|
package org.eclipse.jgit.transport;
|
||||||
|
|
||||||
|
import static java.math.BigInteger.ZERO;
|
||||||
import static java.util.Objects.requireNonNull;
|
import static java.util.Objects.requireNonNull;
|
||||||
import static org.eclipse.jgit.lib.Constants.OBJ_BLOB;
|
import static org.eclipse.jgit.lib.Constants.OBJ_BLOB;
|
||||||
import static org.eclipse.jgit.lib.Constants.OBJ_COMMIT;
|
import static org.eclipse.jgit.lib.Constants.OBJ_COMMIT;
|
||||||
|
@ -43,7 +44,7 @@ private ObjectTypes(BigInteger val) {
|
||||||
}
|
}
|
||||||
|
|
||||||
static ObjectTypes allow(int... types) {
|
static ObjectTypes allow(int... types) {
|
||||||
BigInteger bits = BigInteger.valueOf(0);
|
BigInteger bits = ZERO;
|
||||||
for (int type : types) {
|
for (int type : types) {
|
||||||
bits = bits.setBit(type);
|
bits = bits.setBit(type);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue