1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-09-01 20:53:12 +02:00
cdt/core/org.eclipse.cdt.ui
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 Revert "Bug 489563 - API change for Language Settings Providers." 2016-03-22 10:32:31 -04:00
about_files
browser Bug 491825 - Remove primitive wrapper creation 2016-04-16 12:17:48 -04:00
css
dictionaries
icons
META-INF Incremented version of org.eclipse.cdt.core to 6.0. 2016-02-17 10:28:26 -08:00
schema Remore unused New New Wizard 2015-12-28 13:20:43 -05:00
src/org/eclipse/cdt Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
templateengine/org/eclipse/cdt/ui Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
templates
utils.ui/org/eclipse/cdt/utils/ui/controls Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
.classpath
.cvsignore
.options
.project
about.html
build.properties Remove reference to java environment in build.properties 2015-09-29 08:57:47 -04:00
ChangeLog
ChangeLog-2003
doxygenTags.csv
NEWS
plugin.properties Remore unused New New Wizard 2015-12-28 13:20:43 -05:00
plugin.xml Remore unused New New Wizard 2015-12-28 13:20:43 -05:00
pom.xml Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00