From: Matthias Sohn Date: Fri, 22 Sep 2023 10:37:11 +0000 (+0200) Subject: [errorprone] Fix inconsistent capitalization X-Git-Tag: v6.8.0.202310031045-m1~19 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=298f93e989a0884bea9306fa172fc9af6ff85dbe;p=jgit.git [errorprone] Fix inconsistent capitalization See https://errorprone.info/bugpattern/InconsistentCapitalization Change-Id: I5eaa35a053aca738e180fe22a05fad97877b7e0f --- diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java index 912c89bc8b..88d5d652e0 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java @@ -1413,10 +1413,10 @@ public class RefDirectory extends RefDatabase { 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 @@ public class RefDirectory extends RefDatabase { 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 @@ public class RefDirectory extends RefDatabase { 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 diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/SnapshottingRefDirectory.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/SnapshottingRefDirectory.java index 767084afa5..67e8d795cf 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/SnapshottingRefDirectory.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/SnapshottingRefDirectory.java @@ -228,13 +228,13 @@ class SnapshottingRefDirectory extends RefDirectory { 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 diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableBatchRefUpdate.java b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableBatchRefUpdate.java index 38c17e346a..da1b056342 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableBatchRefUpdate.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableBatchRefUpdate.java @@ -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; diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java b/org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java index bb72e12510..c75d81c8b5 100644 --- a/org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java +++ b/org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java @@ -176,12 +176,12 @@ public abstract class FileMode { * 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.