You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2023/01/30 12:19:43 UTC
svn commit: r1907110 - /poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java
Author: centic
Date: Mon Jan 30 12:19:43 2023
New Revision: 1907110
URL: http://svn.apache.org/viewvc?rev=1907110&view=rev
Log:
Spotbugs: Replace \n with %n in String.format()
Modified:
poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java
Modified: poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java
URL: http://svn.apache.org/viewvc/poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java?rev=1907110&r1=1907109&r2=1907110&view=diff
==============================================================================
--- poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java (original)
+++ poi/trunk/poi/src/main/java/org/apache/poi/util/IOUtils.java Mon Jan 30 12:19:43 2023
@@ -597,17 +597,17 @@ public final class IOUtils {
private static void throwRFE(long length, int maxLength) {
throw new RecordFormatException(String.format(Locale.ROOT, "Tried to allocate an array of length %,d" +
- ", but the maximum length for this record type is %,d.\n" +
- "If the file is not corrupt and not large, please open an issue on bugzilla to request \n" +
- "increasing the maximum allowable size for this record type.\n"+
+ ", but the maximum length for this record type is %,d.%n" +
+ "If the file is not corrupt and not large, please open an issue on bugzilla to request %n" +
+ "increasing the maximum allowable size for this record type.%n"+
"You can set a higher override value with IOUtils.setByteArrayMaxOverride()", length, maxLength));
}
private static void throwRecordTruncationException(final int maxLength) {
throw new RecordFormatException(String.format(Locale.ROOT, "Tried to read data but the maximum length " +
- "for this record type is %,d.\n" +
- "If the file is not corrupt and not large, please open an issue on bugzilla to request \n" +
- "increasing the maximum allowable size for this record type.\n"+
+ "for this record type is %,d.%n" +
+ "If the file is not corrupt and not large, please open an issue on bugzilla to request %n" +
+ "increasing the maximum allowable size for this record type.%n"+
"You can set a higher override value with IOUtils.setByteArrayMaxOverride()", maxLength));
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org