Author: dan.j.allen
Date: 2009-06-15 17:54:59 -0400 (Mon, 15 Jun 2009)
New Revision: 2837
Modified:
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MagicString.java
Log:
don't use JDK 6 String#isEmpty()
Modified: tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MagicString.java
===================================================================
---
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MagicString.java 2009-06-15
21:54:43 UTC (rev 2836)
+++
tck/trunk/impl/src/main/java/org/jboss/jsr299/tck/tests/event/MagicString.java 2009-06-15
21:54:59 UTC (rev 2837)
@@ -20,11 +20,13 @@
return value.compareToIgnoreCase(str);
}
+ @Override
public boolean equals(Object anObject)
{
return value.equals(anObject);
}
+ @Override
public int hashCode()
{
return value.hashCode();
@@ -32,7 +34,7 @@
public boolean isEmpty()
{
- return value.isEmpty();
+ return value == null || value.length() == 0;
}
public int length()
Show replies by date