Changeset 7596 in josm for trunk/src/org
- Timestamp:
- 2014-10-04T17:41:26+02:00 (10 years ago)
- Location:
- trunk/src/org/openstreetmap/josm
- Files:
-
- 10 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/gui/layer/WMSLayer.java
r7509 r7596 98 98 99 99 // Fake reference to keep build scripts from removing ObjectFactory class. This class is not used directly but it's necessary for jaxb to work 100 @SuppressWarnings("unused") 100 101 private static final ObjectFactory OBJECT_FACTORY = null; 101 102 -
trunk/src/org/openstreetmap/josm/gui/mappaint/ElemStyles.java
r7568 r7596 6 6 import java.util.Collection; 7 7 import java.util.Collections; 8 import java.util.Iterator;9 8 import java.util.List; 10 9 import java.util.Map.Entry; -
trunk/src/org/openstreetmap/josm/gui/mappaint/mapcss/ExpressionFactory.java
r7530 r7596 28 28 import org.openstreetmap.josm.data.osm.Node; 29 29 import org.openstreetmap.josm.data.osm.OsmPrimitive; 30 import org.openstreetmap.josm.data.osm.Way;31 30 import org.openstreetmap.josm.gui.mappaint.Cascade; 32 31 import org.openstreetmap.josm.gui.mappaint.Environment; -
trunk/src/org/openstreetmap/josm/gui/mappaint/xml/XmlStyleSource.java
r7563 r7596 14 14 import java.util.List; 15 15 import java.util.Map; 16 import java.util.Objects;17 16 18 17 import org.openstreetmap.josm.Main; -
trunk/src/org/openstreetmap/josm/io/FileImporter.java
r7392 r7596 48 48 /** 49 49 * A batch importer is a file importer that prefers to read multiple files at the same time. 50 * @return {@code true} if this importer is a batch importer 50 51 */ 51 52 public boolean isBatchImporter() { … … 55 56 /** 56 57 * Needs to be implemented if isBatchImporter() returns false. 58 * @param file file to import 59 * @param progressMonitor progress monitor 60 * @throws IOException if any I/O error occurs 61 * @throws IllegalDataException if invalid data is read 57 62 */ 58 63 public void importData(File file, ProgressMonitor progressMonitor) throws IOException, IllegalDataException { … … 62 67 /** 63 68 * Needs to be implemented if isBatchImporter() returns true. 69 * @param files files to import 70 * @param progressMonitor progress monitor 71 * @throws IOException if any I/O error occurs 72 * @throws IllegalDataException if invalid data is read 64 73 */ 65 74 public void importData(List<File> files, ProgressMonitor progressMonitor) throws IOException, IllegalDataException { -
trunk/src/org/openstreetmap/josm/io/NmeaReader.java
r7518 r7596 3 3 4 4 import java.io.BufferedReader; 5 import java.io.IOException; 5 6 import java.io.InputStream; 6 7 import java.io.InputStreamReader; … … 165 166 } 166 167 167 public NmeaReader(InputStream source) {168 public NmeaReader(InputStream source) throws IOException { 168 169 169 170 // create the data tree … … 201 202 data.tracks.add(new ImmutableGpxTrack(currentTrack, Collections.<String, Object>emptyMap())); 202 203 203 } catch ( Exception e) {204 } catch (IllegalDataException e) { 204 205 Main.warn(e); 205 206 } -
trunk/src/org/openstreetmap/josm/plugins/PluginDownloadTask.java
r7509 r7596 44 44 private final Collection<PluginInformation> failed = new LinkedList<>(); 45 45 private final Collection<PluginInformation> downloaded = new LinkedList<>(); 46 private Exception lastException;46 //private Exception lastException; 47 47 private boolean canceled; 48 48 private HttpURLConnection downloadConnection; … … 155 155 File pluginDir = Main.pref.getPluginsDirectory(); 156 156 if (!pluginDir.exists() && !pluginDir.mkdirs()) { 157 lastException = new PluginDownloadException(tr("Failed to create plugin directory ''{0}''", pluginDir.toString()));157 //lastException = new PluginDownloadException(tr("Failed to create plugin directory ''{0}''", pluginDir.toString())); 158 158 failed.addAll(toUpdate); 159 159 return; -
trunk/src/org/openstreetmap/josm/plugins/ReadLocalPluginInformationTask.java
r7033 r7596 19 19 import org.openstreetmap.josm.io.OsmTransferException; 20 20 import org.openstreetmap.josm.tools.ImageProvider; 21 import org.openstreetmap.josm.tools.Utils;22 21 import org.xml.sax.SAXException; 23 22 -
trunk/src/org/openstreetmap/josm/tools/ExceptionUtil.java
r7434 r7596 36 36 import org.openstreetmap.josm.tools.date.DateUtils; 37 37 38 @SuppressWarnings("CallToThreadDumpStack")39 38 public final class ExceptionUtil { 40 39 -
trunk/src/org/openstreetmap/josm/tools/GeoPropertyIndex.java
r7592 r7596 120 120 if (children == null) { 121 121 @SuppressWarnings("unchecked") 122 GPLevel<T>[] tmp = (GPLevel<T>[])new GPLevel[4];122 GPLevel<T>[] tmp = new GPLevel[4]; 123 123 this.children = tmp; 124 124 }
Note:
See TracChangeset
for help on using the changeset viewer.