From: RĂ¼diger Herrmann Date: Sat, 18 Nov 2017 19:23:57 +0000 (+0100) Subject: Remove final modifier on args4j argument field in RevParse X-Git-Tag: v4.9.1.201712030800-r~8 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=refs%2Fchanges%2F53%2F111853%2F1;p=jgit.git Remove final modifier on args4j argument field in RevParse Args4J does no longer allow to use final fields to reference arguments or options [1]. Change RevParse to be compatibel with this change. [1] https://github.com/kohsuke/args4j/commit/6e11f89d40dcc518c0e5eb9eef5d74f05d58e6af See-also: a0558b709448cea01cc0725fff73408d9b223c72 Signed-off-by: RĂ¼diger Herrmann Change-Id: I33b233f195c06855d9e094c8c9ba804fbe7b1438 --- diff --git a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevParse.java b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevParse.java index fa9f64de4f..2157034094 100644 --- a/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevParse.java +++ b/org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevParse.java @@ -68,7 +68,7 @@ class RevParse extends TextBuiltin { boolean verify; @Argument(index = 0, metaVar = "metaVar_commitish") - private final List commits = new ArrayList<>(); + private List commits = new ArrayList<>(); @Override protected void run() throws Exception {