]> source.dussan.org Git - jgit.git/commitdiff
Remove final modifier on args4j argument field in RevParse 53/111853/1
authorRüdiger Herrmann <ruediger.herrmann@gmx.de>
Sat, 18 Nov 2017 19:23:57 +0000 (20:23 +0100)
committerMatthias Sohn <matthias.sohn@sap.com>
Sat, 18 Nov 2017 23:26:13 +0000 (00:26 +0100)
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 <ruediger.herrmann@gmx.de>
Change-Id: I33b233f195c06855d9e094c8c9ba804fbe7b1438

org.eclipse.jgit.pgm/src/org/eclipse/jgit/pgm/RevParse.java

index fa9f64de4fdbf0588f97840ef99243112927ae20..2157034094d426d8d660d9c2af68b9c24c234fe2 100644 (file)
@@ -68,7 +68,7 @@ class RevParse extends TextBuiltin {
        boolean verify;
 
        @Argument(index = 0, metaVar = "metaVar_commitish")
-       private final List<ObjectId> commits = new ArrayList<>();
+       private List<ObjectId> commits = new ArrayList<>();
 
        @Override
        protected void run() throws Exception {