]> source.dussan.org Git - jgit.git/commit
PatchApplier.Result.Error: mark fields final 14/1195314/6
authorMatthias Sohn <matthias.sohn@sap.com>
Mon, 27 May 2024 16:22:29 +0000 (18:22 +0200)
committerMatthias Sohn <matthias.sohn@sap.com>
Tue, 28 May 2024 05:19:16 +0000 (07:19 +0200)
commit9b2fe85c0279f4d5ac69f07ddcd48566c3555405
tree24be9b65ea732c787aafdd690e04b7e31e97d8ba
parent76ce6d91a2e07fdfcbfc8df6970c9e98a98e36a0
PatchApplier.Result.Error: mark fields final

Fields of an Error instance shouldn't be modifiable after its creation.
Adapt tests which were setting hh to null to skip asserting it.

Change-Id: I0f55c1d5cd529aa510029054e6f05bd2637d1bca
org.eclipse.jgit.test/tst/org/eclipse/jgit/patch/PatchApplierTest.java
org.eclipse.jgit/src/org/eclipse/jgit/patch/PatchApplier.java