1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/build
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
..
org.eclipse.cdt.autotools-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.autotools.core Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.autotools.docs Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.autotools.source-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.autotools.tests Bug 490995 - [tests] autotools.tests and debug.app.tests bundles have missing resources 2016-04-05 07:46:04 -05:00
org.eclipse.cdt.autotools.ui Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.autotools.ui.tests Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.build.gcc.core Tighter integration of new build system with cdt.core. 2016-04-14 16:19:37 -04:00
org.eclipse.cdt.cmake-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.cmake.core Remove build.core from cmake.core. How did this pass verification? 2016-04-14 16:35:10 -04:00
org.eclipse.cdt.cmake.ui Remove build.core from cmake.ui. 2016-04-14 16:41:57 -04:00
org.eclipse.cdt.gnu.build-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.gnu.build.source-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.make.core Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.make.core.tests Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.make.ui Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.make.ui.tests Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.managedbuilder.core Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.managedbuilder.core.tests Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.managedbuilder.gnu.ui Tighter integration of new build system with cdt.core. 2016-04-14 16:19:37 -04:00
org.eclipse.cdt.managedbuilder.ui Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.managedbuilder.ui.tests Bug 491945 - Remove new String() literals 2016-04-18 23:30:05 +01:00