File tree Expand file tree Collapse file tree
src/main/java/org/apache/commons/io Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -772,7 +772,7 @@ public static String getPrefix(final String fileName) {
772772 return null ;
773773 }
774774 if (len > fileName .length ()) {
775- requireNonNullChars (fileName + UNIX_NAME_SEPARATOR );
775+ requireNonNullChars (fileName );
776776 return fileName + UNIX_NAME_SEPARATOR ;
777777 }
778778 final String path = fileName .substring (0 , len );
@@ -1405,8 +1405,8 @@ public static String removeExtension(final String fileName) {
14051405 */
14061406 private static void requireNonNullChars (final String path ) {
14071407 if (path .indexOf (0 ) >= 0 ) {
1408- throw new IllegalArgumentException ("Null byte present in file/path name. There are no "
1409- + " known legitimate use cases for such data, but several injection attacks may use it" );
1408+ throw new IllegalArgumentException (
1409+ "Null byte present in file/path name. There are no known legitimate use cases for such data, but several injection attacks may use it" );
14101410 }
14111411 }
14121412 /**
@@ -1491,7 +1491,7 @@ static String[] splitOnTokens(final String text) {
14911491 }
14921492 /**
14931493 * Returns '/' if given true, '\\' otherwise.
1494- *
1494+ *
14951495 * @param unixSeparator which separator to return.
14961496 * @return '/' if given true, '\\' otherwise.
14971497 */
You can’t perform that action at this time.
0 commit comments