aboutsummaryrefslogtreecommitdiffstats
path: root/org.eclipse.jgit
diff options
context:
space:
mode:
authorMatthias Sohn <matthias.sohn@sap.com>2024-05-27 18:22:29 +0200
committerMatthias Sohn <matthias.sohn@sap.com>2024-05-28 07:19:16 +0200
commit9b2fe85c0279f4d5ac69f07ddcd48566c3555405 (patch)
tree24be9b65ea732c787aafdd690e04b7e31e97d8ba /org.eclipse.jgit
parent76ce6d91a2e07fdfcbfc8df6970c9e98a98e36a0 (diff)
downloadjgit-9b2fe85c0279f4d5ac69f07ddcd48566c3555405.tar.gz
jgit-9b2fe85c0279f4d5ac69f07ddcd48566c3555405.zip
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
Diffstat (limited to 'org.eclipse.jgit')
-rw-r--r--org.eclipse.jgit/src/org/eclipse/jgit/patch/PatchApplier.java6
1 files changed, 3 insertions, 3 deletions
diff --git a/org.eclipse.jgit/src/org/eclipse/jgit/patch/PatchApplier.java b/org.eclipse.jgit/src/org/eclipse/jgit/patch/PatchApplier.java
index 1a98d79f99..cb6cc6efa7 100644
--- a/org.eclipse.jgit/src/org/eclipse/jgit/patch/PatchApplier.java
+++ b/org.eclipse.jgit/src/org/eclipse/jgit/patch/PatchApplier.java
@@ -177,12 +177,12 @@ public class PatchApplier {
// TODO(ms): rename this class in next major release
@SuppressWarnings("JavaLangClash")
public static class Error {
- String msg;
+ final String msg;
- String oldFileName;
+ final String oldFileName;
@Nullable
- HunkHeader hh;
+ final HunkHeader hh;
final boolean isGitConflict;