Skip to content

Commit 43dc133

Browse files
committed
CatalogUtils.toShortForm(): use a constant for representing an empty string to reduce memory allocations.
No functional changes.
1 parent 4117ecc commit 43dc133

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/main/java/ru/mystamps/web/util/CatalogUtils.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@ public static String toShortForm(List<String> catalogNumbers) {
6363
Validate.isTrue(catalogNumbers != null, "Catalog numbers must be non null");
6464

6565
if (catalogNumbers.isEmpty()) {
66-
return "";
66+
return StringUtils.EMPTY;
6767
}
6868

6969
Set<String> numbers = new TreeSet<>(STR_AFTER_INT);

0 commit comments

Comments
 (0)