Skip to content

Commit ab48054

Browse files
committed
PMD: Speed up tests
1 parent 0adf425 commit ab48054

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/test/java/software/xdev/saveactions/model/java/EpfKeyTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ private List<String> getPropertiesKeyNames(final Properties properties)
5555
return properties.keySet().stream()
5656
.map(Object::toString)
5757
.filter(key -> EpfKey.getPrefixes().stream().anyMatch(key::startsWith))
58-
.map(key -> key.substring(key.lastIndexOf(".") == -1 ? 0 : key.lastIndexOf(".") + 1))
58+
.map(key -> key.substring(key.lastIndexOf('.') == -1 ? 0 : key.lastIndexOf('.') + 1))
5959
.collect(toList());
6060
}
6161

0 commit comments

Comments
 (0)