[
https://issues.apache.org/jira/browse/TEXT-184?focusedWorklogId=461586&page=com.atlassian.jira.plugin.system.issuetabpanels:worklog-tabpanel#worklog-461586
]
ASF GitHub Bot logged work on TEXT-184:
---------------------------------------
Author: ASF GitHub Bot
Created on: 21/Jul/20 13:47
Start Date: 21/Jul/20 13:47
Worklog Time Spent: 10m
Work Description: XenoAmess commented on a change in pull request #134:
URL: https://github.com/apache/commons-text/pull/134#discussion_r458109552
##########
File path: src/main/java/org/apache/commons/text/CaseUtils.java
##########
@@ -91,10 +91,7 @@ public static String toCamelCase(String str, final boolean
capitalizeFirstLetter
final int codePoint = str.codePointAt(index);
if (delimiterSet.contains(codePoint)) {
- capitalizeNext = true;
- if (outOffset == 0) {
- capitalizeNext = false;
- }
+ capitalizeNext = (outOffset != 0);
Review comment:
@garydgregory OK, parentheses eliminated.
----------------------------------------------------------------
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: 461586)
Time Spent: 0.5h (was: 20m)
> simplify if in CaseUtils
> ------------------------
>
> Key: TEXT-184
> URL: https://issues.apache.org/jira/browse/TEXT-184
> Project: Commons Text
> Issue Type: Sub-task
> Reporter: Jin Xu
> Priority: Minor
> Time Spent: 0.5h
> Remaining Estimate: 0h
>
> [https://github.com/apache/commons-text/pull/134]
--
This message was sent by Atlassian Jira
(v8.3.4#803005)