Modify reader to allow compilation on older JOSM, will need to revert when JOSM is version is bumped

Signed-off-by: Taylor Smock <taylor.smock@kaart.com>
pull/1/head
Taylor Smock 2019-10-28 11:59:25 -06:00
rodzic 809c8016a6
commit 90e9caca48
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 625F6A74A3E4311A
1 zmienionych plików z 2 dodań i 7 usunięć

Wyświetl plik

@ -10,8 +10,6 @@ import org.openstreetmap.josm.gui.progress.NullProgressMonitor;
import org.openstreetmap.josm.gui.progress.ProgressMonitor;
import org.openstreetmap.josm.io.IllegalDataException;
import org.openstreetmap.josm.io.OsmReader;
import org.openstreetmap.josm.plugins.mapwithai.MapWithAIPlugin;
import org.openstreetmap.josm.tools.Logging;
/**
* TODO remove this class in January 2019 (if required patch is pulled)
@ -24,11 +22,8 @@ import org.openstreetmap.josm.tools.Logging;
public class OsmReaderCustom extends OsmReader {
protected OsmReaderCustom(boolean convertUnknownToTags) {
// Restricts visibility
try {
this.convertUnknownToTags = convertUnknownToTags;
} catch (Exception e) {
Logging.error("{0}: For best results, use JOSM >r15470", MapWithAIPlugin.NAME);
}
// TODO when we update to r15470 this.convertUnknownToTags =
// convertUnknownToTags;
}
@Override