1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-04-29 19:45:01 +02:00
cdt/debug
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.debug.application Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.debug.application.doc Bug 472765: User documentation for Path Mapping 2016-04-13 10:41:46 -05:00
org.eclipse.cdt.debug.application.product Stand-alone debugger for Mac OS X 2016-04-02 22:59:15 -04:00
org.eclipse.cdt.debug.application.tests Enable coverage measurements from stand alone debugger tests 2016-04-15 21:05:34 -04:00
org.eclipse.cdt.debug.core Bug 491825 - Remove primitive wrapper creation 2016-04-16 12:17:48 -04:00
org.eclipse.cdt.debug.core.tests Updated the about.html files. 2006-05-24 13:51:50 +00:00
org.eclipse.cdt.debug.standalone-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.debug.standalone.source-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.debug.ui Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
org.eclipse.cdt.gdb Bug 484900: Remove Majority of CDI classes 2016-03-08 19:18:05 -05:00
org.eclipse.cdt.gdb-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.gdb.source-feature Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.gdb.ui Incremented CDT features version to 9.0.0 2016-01-18 16:37:47 -05:00
org.eclipse.cdt.gnu.debug-feature Bug 484900: Remove Majority of CDI classes 2016-03-08 19:18:05 -05:00
org.eclipse.cdt.gnu.debug.source-feature Bug 484900: Remove Majority of CDI classes 2016-03-08 19:18:05 -05:00