]> source.dussan.org Git - jgit.git/commitdiff
[errorprone] Fix inconsistent capitalization 74/204574/8
authorMatthias Sohn <matthias.sohn@sap.com>
Fri, 22 Sep 2023 10:37:11 +0000 (12:37 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Mon, 25 Sep 2023 20:06:12 +0000 (22:06 +0200)
See https://errorprone.info/bugpattern/InconsistentCapitalization

Change-Id: I5eaa35a053aca738e180fe22a05fad97877b7e0f

org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/RefDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/file/SnapshottingRefDirectory.java
org.eclipse.jgit/src/org/eclipse/jgit/internal/storage/reftable/ReftableBatchRefUpdate.java
org.eclipse.jgit/src/org/eclipse/jgit/lib/FileMode.java

index 912c89bc8b63f05c4eaaef185e296e4da61bebef..88d5d652e015035b0ebabe41aa9cb42a528ff291 100644 (file)
@@ -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
index 767084afa5ca61eb4753714f196d04c9d85fa0bd..67e8d795cfc050e74a39fcc33a200776691afd50 100644 (file)
@@ -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
index 38c17e346a6b3e284943f0986cea2cc6723c5f37..da1b0563426e626a27176841acd77a3e75df1b98 100644 (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;
index bb72e1251082c8a534d0157fbc759261928ecab9..c75d81c8b5c4875774991965f01ea3075a6f87c9 100644 (file)
@@ -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.