commit | 65cee6ccbf0526e94f1cdb7fd06597c6ffa7c01a | [log] [tgz] |
---|---|---|
author | Matthias Sohn <matthias.sohn@sap.com> | Sat Aug 10 23:48:42 2019 +0200 |
committer | Matthias Sohn <matthias.sohn@sap.com> | Sat Aug 10 23:57:21 2019 +0200 |
tree | 302c09c6e72ac33c6a096e130673493bd8cd4706 | |
parent | a7338dd1e5173b081d0ec1a7f31f48ed34b07d70 [diff] |
Override FileBasedConfig's save method in MockConfig This ensures we don't try to persist MockConfig using its superclasses save() method which fails with an NPE since MockConfig has no backing file. Change-Id: Ifba2d24c9438bb30d3828ed31a4c131f940b45eb Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
diff --git a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java index 8de386e..abbbf32 100644 --- a/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java +++ b/org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java
@@ -81,6 +81,11 @@ public void load() throws IOException, ConfigInvalidException { } @Override + public void save() throws IOException { + // Do nothing + } + + @Override public boolean isOutdated() { return false; }