summary |
shortlog |
log |
commit | commitdiff |
review |
tree
raw |
patch |
inline | side by side (from parent 1:
e1b0b50)
Simplify conditional down to a simple expression.
Change-Id: I9914276aabff7463121d9c79f47f07a414a2e6c8
Signed-off-by: Robert Varga <robert.varga@pantheon.tech>
(cherry picked from commit
ee7ca68f75cee58e6250fd2ddae42365616b54b6)
* @return true if there is another char, false otherwise
*/
private static boolean existNext(final String identifier, final int actual) {
* @return true if there is another char, false otherwise
*/
private static boolean existNext(final String identifier, final int actual) {
- return identifier.length() - 1 < actual + 1 ? false : true;
+ return identifier.length() > actual + 1;