Skip to content

Commit

Permalink
Merge pull request #13662 from uckelman/more_finals
Browse files Browse the repository at this point in the history
PMD: Variables can be final
  • Loading branch information
uckelman authored Oct 29, 2024
2 parents e487464 + aa5ae56 commit a3c428a
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -1116,7 +1116,7 @@ public Object countMapLocation(Object locationName, Object mapName, Object prope
final PieceFilter filter = createFilter(expression, ps);
final Map targetMap = findVassalMap(mapName.toString());

String propValue;
final String propValue;
if (property == null || property.toString().isEmpty()) {
propValue = null;
}
Expand Down Expand Up @@ -1251,7 +1251,7 @@ public Object countZone(Object zoneName, Object mapName, Object property, Object
final PieceFilter filter = createFilter(expression, ps);
final Map targetMap = findVassalMap(mapName.toString());

String propValue;
final String propValue;
if (property == null || property.toString().isEmpty()) {
propValue = null;
}
Expand Down
2 changes: 1 addition & 1 deletion vassal-app/src/main/java/VASSAL/tools/DataArchive.java
Original file line number Diff line number Diff line change
Expand Up @@ -322,7 +322,7 @@ protected SortedSet<String> getLocalImageNames() {

/* Localized directories always take the form images_XX with XX being a i18n code */
protected void buildLocalizedDirectoryList(List<String> list) {
List<String> files;
final List<String> files;
try {
files = archive.getFiles("");
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public PropertiesEncoder(String stringValue) throws IOException {
}

private String encode(Properties p) {
String s;
final String s;
try {
final ByteArrayOutputStream out = new ByteArrayOutputStream();
p.store(out, null);
Expand Down

0 comments on commit a3c428a

Please sign in to comment.