Skip to content

Commit

Permalink
PMD fixes
Browse files Browse the repository at this point in the history
git-svn-id: https://josm.openstreetmap.de/svn/trunk@19181 0c6e7542-c601-0410-84e7-c038aed88b3b
  • Loading branch information
stoecker committed Aug 12, 2024
1 parent ccac6ac commit 1b02aa3
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions scripts/TagInfoExtract.java
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,6 @@
import java.util.Collection;
import java.util.Collections;
import java.util.EnumSet;
import java.util.HashSet;
import java.util.LinkedHashMap;
import java.util.List;
import java.util.Locale;
Expand Down Expand Up @@ -615,7 +614,7 @@ static TagInfoTag.Type forPresetType(TaggingPresetType type) {
}

static Set<TagInfoTag.Type> forPresetTypes(Set<TaggingPresetType> types) {
return types == null ? new HashSet<>() : types.stream()
return types == null ? new EnumSet<>() : types.stream()
.map(Type::forPresetType)
.collect(Collectors.toCollection(() -> EnumSet.noneOf(Type.class)));
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ public int zoom() {
* Get the x coordinate
* @return The x coordinate for this tile
*/
@SuppressWarnings("PMD.ShortMethodName")
public int x() {
return this.x;
}
Expand All @@ -48,6 +49,7 @@ public int x() {
* Get the y coordinate
* @return The y coordinate for this tile
*/
@SuppressWarnings("PMD.ShortMethodName")
public int y() {
return this.y;
}
Expand Down

0 comments on commit 1b02aa3

Please sign in to comment.