ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From chen...@apache.org
Subject svn commit: r1538764 - /ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/fsm/adapters/NumberTokenAdapter.java
Date Mon, 04 Nov 2013 21:06:56 GMT
Author: chenpei
Date: Mon Nov  4 21:06:55 2013
New Revision: 1538764

URL: http://svn.apache.org/r1538764
Log:
CTAKES-253 - Didn't need an additional .length()>0 in NumTokenAdapter check since Strings.isNullOrEmpty()
does it already

Modified:
    ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/fsm/adapters/NumberTokenAdapter.java

Modified: ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/fsm/adapters/NumberTokenAdapter.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/fsm/adapters/NumberTokenAdapter.java?rev=1538764&r1=1538763&r2=1538764&view=diff
==============================================================================
--- ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/fsm/adapters/NumberTokenAdapter.java
(original)
+++ ctakes/trunk/ctakes-core/src/main/java/org/apache/ctakes/core/fsm/adapters/NumberTokenAdapter.java
Mon Nov  4 21:06:55 2013
@@ -38,7 +38,7 @@ public class NumberTokenAdapter extends 
 	{
 		super(nta);
 		
-		if (!Strings.isNullOrEmpty(nta.getCoveredText()) && nta.getCoveredText().length()
> 0 && nta.getCoveredText().charAt(0) == '-')
+		if (!Strings.isNullOrEmpty(nta.getCoveredText()) && nta.getCoveredText().charAt(0)
== '-')
 		{
 			iv_isPositive = false;
 		}		



Mime
View raw message