aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2020-08-31 00:51:08 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2020-09-01 17:51:44 +0200
commit04622016ead740da144ba34625bda4692c0aed38 (patch)
tree6cae53a733de08cea052da6490c0b1e1032833df /org.eclipse.jgit
parentb51ed023ff87cda3684481ca38beef568a99f4e9 (diff)
downloadjgit-04622016ead740da144ba34625bda4692c0aed38.tar.gz
jgit-04622016ead740da144ba34625bda4692c0aed38.zip
[errorprone] Declare DirCache#version final
Enums values should be immutable, see https://errorprone.info/bugpattern/ImmutableEnumChecker. Change-Id: Ib0a358d3a5f1560ca73ec3153ca8088fe7a35eb6 Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java2
1 files changed, 1 insertions, 1 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java
index bb725b7a35..03da61583d 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java
@@ -1033,7 +1033,7 @@ public class DirCache {
*/
DIRC_VERSION_PATHCOMPRESS(4);
- private int version;
+ private final int version;
private DirCacheVersion(int versionCode) {
this.version = versionCode;