1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/codan/org.eclipse.cdt.codan.ui.cfgview
Alex Blewitt 2114f6b108 Bug 491984 - Replace .equals("") with .isEmpty()
In many cases a String's empty status is tested with `.equals("")`.
However, Java 1.6 added `.isEmpty()` which can be more efficient since
it compares the internal length parameter only for testing. Replace
code using the `.isEmpty()` variant instead.

Some tests for `"".equals(expr)` can be replaced with `expr.isEmpty()`
where it is already known that the `expr` is not null; however,
these have to be reviewed on a case-by-case basis.

Change-Id: I3c6af4d8b7638e757435914ac76cb3a67899a5fd
Signed-off-by: Alex Blewitt <alex.blewitt@gmail.com>
2016-04-19 13:35:54 -04:00
..
.settings cleanup of ControlFlowGraph view 2015-12-18 07:59:19 -05:00
icons - re-wrote to use labeled node instead of decisionArc 2010-04-14 02:55:44 +00:00
META-INF Enabled JDK 1.7. 2014-01-24 13:38:55 -05:00
src/org/eclipse/cdt/codan/ui/cfgview Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
.classpath Enabled JDK 1.7. 2014-01-24 13:38:55 -05:00
.project - test view to inspect control flow graph 2010-03-29 02:31:04 +00:00
about.html Bug 348747 - Codan source bundles missing required files 2011-06-08 14:10:28 +00:00
build.properties cleanup of ControlFlowGraph view 2015-12-18 07:59:19 -05:00
plugin.xml Fix a typo in org.eclipse.cdt.codan.ui.cfgview/plugin.xml 2015-02-16 01:45:53 -05:00