[ https://issues.apache.org/jira/browse/LANG-1528?focusedWorklogId=408472&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-408472 ]
ASF GitHub Bot logged work on LANG-1528: ---------------------------------------- Author: ASF GitHub Bot Created on: 24/Mar/20 01:34 Start Date: 24/Mar/20 01:34 Worklog Time Spent: 10m Work Description: coveralls commented on issue #505: https://issues.apache.org/jira/browse/LANG-1528 URL: https://github.com/apache/commons-lang/pull/505#issuecomment-602955763 [![Coverage Status](https://coveralls.io/builds/29567531/badge)](https://coveralls.io/builds/29567531) Coverage increased (+0.001%) to 95.095% when pulling **9034577e964132a4f6693bd44b9f2619270d3031 on edelgadoh:master** into **e3a7399a7d82a5b3a33cc7653107821ce1709f67 on apache:master**. ---------------------------------------------------------------- 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: us...@infra.apache.org Issue Time Tracking ------------------- Worklog Id: (was: 408472) Time Spent: 20m (was: 10m) > replaceEachRepeatedly gives IllegalStateException > ------------------------------------------------- > > Key: LANG-1528 > URL: https://issues.apache.org/jira/browse/LANG-1528 > Project: Commons Lang > Issue Type: Bug > Components: lang.* > Affects Versions: 3.8, 3.9, 3.8.1 > Reporter: jimmy > Priority: Minor > Labels: easyfix > Time Spent: 20m > Remaining Estimate: 0h > > > ChurchilllaanTest1 fails, ChurchilllaanTest2 doesn't, why? > Please allow the ttl to be overridden. > {code:java} > @Test > public void ChurchilllaanTest1() { > String input = "Churchilllaan"; > String[][] replaceMap = new String[][] { > { "llaan", "laan" }, > }; > > String output = StringUtils.replaceEachRepeatedly( > input, > getColumn(0, replaceMap), > getColumn(1, replaceMap)); > Assert.assertEquals("Churchilaan", output); > } > @Test > public void ChurchilllaanTest2() { > String input = "Churchilllaan"; > String[][] replaceMap = new String[][] { > { "llaan", "laan" }, > { "C", "c" }, > }; > > String output = StringUtils.replaceEachRepeatedly( > input, > getColumn(0, replaceMap), > getColumn(1, replaceMap)); > Assert.assertEquals("churchilaan", output); > } > private String[] getColumn(int colIndex, String[][] from) { > return Arrays.stream(from).map(x -> > x[colIndex]).toArray(String[]::new); > } > {code} > -- This message was sent by Atlassian Jira (v8.3.4#803005)