From 04622016ead740da144ba34625bda4692c0aed38 Mon Sep 17 00:00:00 2001 From: Matthias Sohn Date: Mon, 31 Aug 2020 00:51:08 +0200 Subject: [errorprone] Declare DirCache#version final Enums values should be immutable, see https://errorprone.info/bugpattern/ImmutableEnumChecker. Change-Id: Ib0a358d3a5f1560ca73ec3153ca8088fe7a35eb6 Signed-off-by: Matthias Sohn --- org.eclipse.jgit/src/org/eclipse/jgit/dircache/DirCache.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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; -- cgit v1.2.3