[errorprone] Fix inconsistent capitalization

See https://errorprone.info/bugpattern/InconsistentCapitalization

Change-Id: I5eaa35a053aca738e180fe22a05fad97877b7e0f
This commit is contained in:
Matthias Sohn 2023-09-22 12:37:11 +02:00
parent e5e54b61b4
commit 298f93e989
4 changed files with 16 additions and 16 deletions

View File

@ -1413,10 +1413,10 @@ private static final class LoosePeeledTag extends ObjectIdRef.PeeledTag
implements LooseRef {
private final FileSnapshot snapShot;
LoosePeeledTag(FileSnapshot snapshot, @NonNull String refName,
LoosePeeledTag(FileSnapshot snapShot, @NonNull String refName,
@NonNull ObjectId id, @NonNull ObjectId p) {
super(LOOSE, refName, id, p);
this.snapShot = snapshot;
this.snapShot = snapShot;
}
@Override
@ -1434,10 +1434,10 @@ private static final class LooseNonTag extends ObjectIdRef.PeeledNonTag
implements LooseRef {
private final FileSnapshot snapShot;
LooseNonTag(FileSnapshot snapshot, @NonNull String refName,
LooseNonTag(FileSnapshot snapShot, @NonNull String refName,
@NonNull ObjectId id) {
super(LOOSE, refName, id);
this.snapShot = snapshot;
this.snapShot = snapShot;
}
@Override
@ -1490,10 +1490,10 @@ private static final class LooseSymbolicRef extends SymbolicRef implements
LooseRef {
private final FileSnapshot snapShot;
LooseSymbolicRef(FileSnapshot snapshot, @NonNull String refName,
LooseSymbolicRef(FileSnapshot snapShot, @NonNull String refName,
@NonNull Ref target) {
super(refName, target);
this.snapShot = snapshot;
this.snapShot = snapShot;
}
@Override

View File

@ -228,13 +228,13 @@ public RefUpdate.Result rename() throws IOException {
private static class SnapshotPackedBatchRefUpdate
extends PackedBatchRefUpdate {
SnapshotPackedBatchRefUpdate(RefDirectory refdb) {
super(refdb);
SnapshotPackedBatchRefUpdate(RefDirectory refDb) {
super(refDb);
}
SnapshotPackedBatchRefUpdate(RefDirectory refdb,
SnapshotPackedBatchRefUpdate(RefDirectory refDb,
boolean shouldLockLooseRefs) {
super(refdb, shouldLockLooseRefs);
super(refDb, shouldLockLooseRefs);
}
@Override

View File

@ -64,7 +64,7 @@ public abstract class ReftableBatchRefUpdate extends BatchRefUpdate {
/**
* Initialize.
*
* @param refdb
* @param refDb
* The RefDatabase
* @param reftableDb
* The ReftableDatabase
@ -73,9 +73,9 @@ public abstract class ReftableBatchRefUpdate extends BatchRefUpdate {
* @param repository
* The repository on which this update will run
*/
protected ReftableBatchRefUpdate(RefDatabase refdb, ReftableDatabase reftableDb, Lock lock,
Repository repository) {
super(refdb);
protected ReftableBatchRefUpdate(RefDatabase refDb,
ReftableDatabase reftableDb, Lock lock, Repository repository) {
super(refDb);
this.refDb = reftableDb;
this.lock = lock;
this.repository = repository;

View File

@ -176,12 +176,12 @@ private FileMode(int mode, int expType) {
* Test a file mode for equality with this
* {@link org.eclipse.jgit.lib.FileMode} object.
*
* @param modebits
* @param modeBits
* a int.
* @return true if the mode bits represent the same mode as this object
*/
@SuppressWarnings("NonOverridingEquals")
public abstract boolean equals(int modebits);
public abstract boolean equals(int modeBits);
/**
* Copy this mode as a sequence of octal US-ASCII bytes.