uima-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From sc...@apache.org
Subject svn commit: r997040 - /uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/impl/ResultSpecification_impl.java
Date Tue, 14 Sep 2010 18:59:38 GMT
Author: schor
Date: Tue Sep 14 18:59:38 2010
New Revision: 997040

URL: http://svn.apache.org/viewvc?rev=997040&view=rev
Log:
no Jira - fix 2 findbugs issues

Modified:
    uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/impl/ResultSpecification_impl.java

Modified: uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/impl/ResultSpecification_impl.java
URL: http://svn.apache.org/viewvc/uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/impl/ResultSpecification_impl.java?rev=997040&r1=997039&r2=997040&view=diff
==============================================================================
--- uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/impl/ResultSpecification_impl.java
(original)
+++ uima/uimaj/trunk/uimaj-core/src/main/java/org/apache/uima/analysis_engine/impl/ResultSpecification_impl.java
Tue Sep 14 18:59:38 2010
@@ -211,7 +211,7 @@ public final class ResultSpecification_i
   
   private TypeOrFeature[] getResultTypesAndFeatures(boolean skipLanguageFilter, String language)
{
     List<TypeOrFeature> r = new ArrayList<TypeOrFeature>();
-    if ((rsTypesMap == null || rsTypesMap.nbrOfTypes() == 0) && needsCompilation
== false) {
+    if (rsTypesMap.nbrOfTypes() == 0 && needsCompilation == false) {
       // being called on results of intersection
       // probably by a test case, not a normal call
       // attempt to construct a plausible representation
@@ -726,6 +726,8 @@ public final class ResultSpecification_i
     return compiledFormEquals((ResultSpecification_impl)aObj);
   }
   
+  
+  
   static boolean equalsOrBothNull(Object x, Object y) {
     if (null == x && null == y) {
       return true;
@@ -736,4 +738,9 @@ public final class ResultSpecification_i
     return false;
   }
 
+  @Override
+  public int hashCode() {
+    throw new UnsupportedOperationException("HashCode not implemented for ResultSpecification_impl");
+  }
+
 }



Mime
View raw message