1
0
Fork 0
mirror of https://github.com/eclipse-cdt/cdt synced 2025-08-03 22:35:43 +02:00
cdt/dsf-gdb/org.eclipse.cdt.tests.dsf.gdb
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
..
.externalToolBuilders Flattening rest of gdb tests 2016-03-18 09:39:45 -04:00
.settings parameterized tests gdb tests 2016-03-16 16:51:17 -04:00
data/launch Add Inferior exit code test 2016-02-25 09:09:25 -05:00
META-INF Flattening rest of gdb tests 2016-03-18 09:39:45 -04:00
scripts Update script for GDB 7.11 2016-02-24 16:14:51 -05:00
src/org/eclipse/cdt Bug 491984 - Replace .equals("") with .isEmpty() 2016-04-19 13:35:54 -04:00
.classpath parameterized tests gdb tests 2016-03-16 16:51:17 -04:00
.options [303828] Instrument ServiceEventWaitor 2010-02-25 23:00:21 +00:00
.project Migrated DSF and DSF-GDB to the CDT project. 2009-01-08 21:08:05 +00:00
about.html Migrated DSF and DSF-GDB to the CDT project. 2009-01-08 21:08:05 +00:00
build.properties Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair 2014-07-14 12:34:41 -04:00
plugin.xml Bug 437562 - Split the dsf-gdb tests to a plug-in and fragment pair 2014-07-14 12:34:41 -04:00
pom.xml gdb catchpoints registers tests cleanup 2016-03-17 09:24:39 -04:00
TestAppBuilder.xml Bug 444196 - [tests] dsf-gdb tests fail the build when 'make' is not installed 2014-09-16 15:42:57 -04:00