ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From c...@apache.org
Subject svn commit: r1471081 - /ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java
Date Tue, 23 Apr 2013 18:14:27 GMT
Author: clin
Date: Tue Apr 23 18:14:27 2013
New Revision: 1471081

URL: http://svn.apache.org/r1471081
Log:
make the null check statement succinct.

Modified:
    ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java

Modified: ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java?rev=1471081&r1=1471080&r2=1471081&view=diff
==============================================================================
--- ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java
(original)
+++ ctakes/trunk/ctakes-temporal/src/main/java/org/apache/ctakes/temporal/ae/feature/EventPropertyExtractor.java
Tue Apr 23 18:14:27 2013
@@ -48,7 +48,7 @@ public class EventPropertyExtractor impl
 	  //1 get event:
 	  EventMention event = (EventMention)annotation;
 	  String contextModal = event.getEvent().getProperties().getContextualModality();
-	  if (contextModal != null && contextModal.equals("GENERIC")){
+	  if ( "GENERIC".equals(contextModal) ){
 		  Feature contexmod = new Feature(this.name, contextModal);
 		  features.add(contexmod);
 //		  logger.info("found a event: "+ contextModal);



Mime
View raw message