[
https://issues.apache.org/jira/browse/LANG-1475?focusedWorklogId=297592&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-297592
]
ASF GitHub Bot logged work on LANG-1475:
----------------------------------------
Author: ASF GitHub Bot
Created on: 20/Aug/19 03:39
Start Date: 20/Aug/19 03:39
Worklog Time Spent: 10m
Work Description: Stzx commented on pull request #441: [LANG-1475] Fix
unwrap StringIndexOutOfBoundsException
URL: https://github.com/apache/commons-lang/pull/441
When the string length is shorter than two, it should be returned directly
without operation.
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
Issue Time Tracking
-------------------
Worklog Id: (was: 297592)
Remaining Estimate: 0h (was: 10m)
Time Spent: 10m
> StringUtils.unwrap StringIndexOutOfBoundsException
> --------------------------------------------------
>
> Key: LANG-1475
> URL: https://issues.apache.org/jira/browse/LANG-1475
> Project: Commons Lang
> Issue Type: Bug
> Components: lang.*
> Reporter: Silence Tai
> Priority: Major
> Original Estimate: 10m
> Time Spent: 10m
> Remaining Estimate: 0h
>
> Call
> {code:java} StringUtils.unwrap("a", 'a'); {code}
> or
> {code:java} StringUtils.unwrap("a", "a"); {code}
> Throw Exception:
> *java.lang.StringIndexOutOfBoundsException: begin 1, end 0, length 1*
--
This message was sent by Atlassian Jira
(v8.3.2#803003)