Skip to content

Commit fa39904

Browse files
committed
Merge some string literals
1 parent 2cdff8f commit fa39904

File tree

5 files changed

+5
-5
lines changed

5 files changed

+5
-5
lines changed

src/main/java/org/apache/commons/beanutils2/converters/DateTimeConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -620,7 +620,7 @@ private <T> T toDate(final Class<T> type, final String value) {
620620
try {
621621
return type.cast(java.sql.Timestamp.valueOf(value));
622622
} catch (final IllegalArgumentException e) {
623-
throw new ConversionException("String must be in JDBC format [yyyy-MM-dd HH:mm:ss.fffffffff] " + "to create a java.sql.Timestamp");
623+
throw new ConversionException("String must be in JDBC format [yyyy-MM-dd HH:mm:ss.fffffffff] to create a java.sql.Timestamp");
624624
}
625625
}
626626

src/main/java/org/apache/commons/beanutils2/converters/NumberConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,7 @@ private NumberFormat getFormat() {
206206
format = new DecimalFormat(pattern);
207207
} else {
208208
if (log().isDebugEnabled()) {
209-
log().debug(" Using pattern '" + pattern + "'" + " with Locale[" + locale + "]");
209+
log().debug(" Using pattern '" + pattern + "' with Locale[" + locale + "]");
210210
}
211211
final DecimalFormatSymbols symbols = new DecimalFormatSymbols(locale);
212212
format = new DecimalFormat(pattern, symbols);

src/main/java/org/apache/commons/beanutils2/converters/PointConverter.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ protected <T> T convertToType(final Class<T> type, final Object value) throws Th
7575
final String[] xy = POINT_SPLIT.split(coordinates);
7676

7777
if (xy.length != 2) {
78-
throw new IllegalArgumentException("Point must have an x coordinate, and y coordinate only, " + "expecting the following format: (40, 200)");
78+
throw new IllegalArgumentException("Point must have an x coordinate, and y coordinate only, expecting the following format: (40, 200)");
7979
}
8080

8181
final int x = Integer.parseInt(xy[0]);

src/test/java/org/apache/commons/beanutils2/BeanMapTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -279,7 +279,7 @@ void testBeanMapClone() {
279279
assertTrue(map2.containsKey(key), "Cloned BeanMap should contain the same keys");
280280
}
281281
} catch (final CloneNotSupportedException exception) {
282-
fail("BeanMap.clone() should not throw a " + "CloneNotSupportedException when clone should succeed.");
282+
fail("BeanMap.clone() should not throw a CloneNotSupportedException when clone should succeed.");
283283
}
284284
}
285285

src/test/java/org/apache/commons/beanutils2/memoryleaktests/MemoryLeakTest.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,7 @@ private String getMemoryStats() {
148148
final long free = runtime.freeMemory() / 1024;
149149
final long total = runtime.totalMemory() / 1024;
150150
final long used = total - free;
151-
return "MEMORY - Total: " + fmt.format(total) + "k " + "Used: " + fmt.format(used) + "k " + "Free: " + fmt.format(free) + "k";
151+
return "MEMORY - Total: " + fmt.format(total) + "k Used: " + fmt.format(used) + "k Free: " + fmt.format(free) + "k";
152152
}
153153

154154
/**

0 commit comments

Comments
 (0)