Kaynağa Gözat

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>
tags/v5.1.9.201908210455-r
Matthias Sohn 4 yıl önce
ebeveyn
işleme
65cee6ccbf

+ 5
- 0
org.eclipse.jgit.junit/src/org/eclipse/jgit/junit/MockSystemReader.java Dosyayı Görüntüle

@@ -80,6 +80,11 @@ public class MockSystemReader extends SystemReader {
// Do nothing
}

@Override
public void save() throws IOException {
// Do nothing
}

@Override
public boolean isOutdated() {
return false;

Loading…
İptal
Kaydet