Description
StringUtils.padRight() throws StringIndexOutOfBoundsException when the input string is longer than the target length.
Steps to Reproduce
StringUtils.padRight("long string", 5); // throws exception
Expected Behavior
Should return the original string (or truncate) when input is longer than target length.
Files Affected
src/main/java/com/taskflow/util/StringUtils.java (padRight method)
Description
StringUtils.padRight()throwsStringIndexOutOfBoundsExceptionwhen the input string is longer than the target length.Steps to Reproduce
Expected Behavior
Should return the original string (or truncate) when input is longer than target length.
Files Affected
src/main/java/com/taskflow/util/StringUtils.java(padRight method)