Changeset 6093 in josm for trunk/src/org/openstreetmap/josm/data
- Timestamp:
- 2013-07-30T18:35:47+02:00 (11 years ago)
- Location:
- trunk/src/org/openstreetmap/josm/data
- Files:
-
- 7 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/src/org/openstreetmap/josm/data/imagery/ImageryLayerInfo.java
r6087 r6093 42 42 43 43 public void load() { 44 boolean addedDefault = layers.size() != 0;44 boolean addedDefault = !layers.isEmpty(); 45 45 List<ImageryPreferenceEntry> entries = Main.pref.getListOfStructs("imagery.entries", null, ImageryPreferenceEntry.class); 46 46 if (entries != null) { … … 121 121 122 122 Collections.sort(defaultLayers); 123 Main.pref.putCollection("imagery.layers.default", defaultsSave.size() > 0 124 ? defaultsSave : defaults); 123 Main.pref.putCollection("imagery.layers.default", defaultsSave.isEmpty() ? defaults : defaultsSave); 125 124 } 126 125 -
trunk/src/org/openstreetmap/josm/data/imagery/WmsCache.java
r5874 r6093 269 269 index.setTotalFileSize(totalFileSize); 270 270 for (ProjectionEntries projectionEntries: entries.values()) { 271 if ( projectionEntries.entries.size() > 0) {271 if (!projectionEntries.entries.isEmpty()) { 272 272 ProjectionType projectionType = new ProjectionType(); 273 273 projectionType.setName(projectionEntries.projection); -
trunk/src/org/openstreetmap/josm/data/osm/MultipolygonCreate.java
r5909 r6093 256 256 257 257 //process inner ways 258 if ( innerCandidates.size() > 0) {258 if (!innerCandidates.isEmpty()) { 259 259 List<PolygonLevel> innerList = this.findOuterWaysRecursive(level + 1, innerCandidates); 260 260 if (innerList == null) { -
trunk/src/org/openstreetmap/josm/data/osm/QuadBuckets.java
r6084 r6093 175 175 return false; 176 176 boolean ret = this.content.remove(o); 177 if (this.content. size() == 0) {177 if (this.content.isEmpty()) { 178 178 this.content = null; 179 179 } … … 492 492 boolean canRemove() 493 493 { 494 if (content != null && content.size() > 0)494 if (content != null && !content.isEmpty()) 495 495 return false; 496 496 if (this.hasChildren()) -
trunk/src/org/openstreetmap/josm/data/projection/datum/NTV2GridShiftFile.java
r5874 r6093 184 184 for (int i = 0; i < subGrid.length; i++) { 185 185 ArrayList<NTV2SubGrid> subSubGrids = subGridMap.get(subGrid[i].getSubGridName()); 186 if ( subSubGrids.size() > 0) {186 if (!subSubGrids.isEmpty()) { 187 187 NTV2SubGrid[] subGridArray = subSubGrids.toArray(nullArray); 188 188 subGrid[i].setSubGridArray(subGridArray); -
trunk/src/org/openstreetmap/josm/data/validation/tests/Coastlines.java
r4869 r6093 157 157 } 158 158 159 if ( highlight.size() > 0) {159 if (!highlight.isEmpty()) { 160 160 errors.add(new TestError(this, Severity.ERROR, tr("Unconnected coastline"), 161 161 UNCONNECTED_COASTLINE, primitives, highlight)); -
trunk/src/org/openstreetmap/josm/data/validation/tests/RelationChecker.java
r6068 r6093 109 109 } 110 110 } 111 if (allroles. size() == 0) {111 if (allroles.isEmpty()) { 112 112 errors.add( new TestError(this, Severity.WARNING, tr("Relation type is unknown"), 113 113 RELATION_UNKNOWN, n) );
Note:
See TracChangeset
for help on using the changeset viewer.