You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2022/05/20 12:46:39 UTC

[uima-ruta] branch bugfix/UIMA-6461-Wrong-argument-to-contains created (now ce29902d)

This is an automated email from the ASF dual-hosted git repository.

rec pushed a change to branch bugfix/UIMA-6461-Wrong-argument-to-contains
in repository https://gitbox.apache.org/repos/asf/uima-ruta.git


      at ce29902d [UIMA-6461] Wrong argument to contains()

This branch includes the following new commits:

     new ce29902d [UIMA-6461] Wrong argument to contains()

The 1 revisions listed above as "new" are entirely new to this
repository and will be described in separate emails.  The revisions
listed as "add" were already present in the repository and have only
been added to this reference.



[uima-ruta] 01/01: [UIMA-6461] Wrong argument to contains()

Posted by re...@apache.org.
This is an automated email from the ASF dual-hosted git repository.

rec pushed a commit to branch bugfix/UIMA-6461-Wrong-argument-to-contains
in repository https://gitbox.apache.org/repos/asf/uima-ruta.git

commit ce29902d3fceb5dfdbbfb05d4f6fe40478cb9f4d
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Fri May 20 14:46:33 2022 +0200

    [UIMA-6461] Wrong argument to contains()
    
    - Use `conditionName` instead of `cond`
---
 .../java/org/apache/uima/ruta/ide/validator/LanguageCheckerVisitor.java | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/ruta-ep-ide-ui/src/main/java/org/apache/uima/ruta/ide/validator/LanguageCheckerVisitor.java b/ruta-ep-ide-ui/src/main/java/org/apache/uima/ruta/ide/validator/LanguageCheckerVisitor.java
index caa32815..0bfec221 100644
--- a/ruta-ep-ide-ui/src/main/java/org/apache/uima/ruta/ide/validator/LanguageCheckerVisitor.java
+++ b/ruta-ep-ide-ui/src/main/java/org/apache/uima/ruta/ide/validator/LanguageCheckerVisitor.java
@@ -774,7 +774,7 @@ public class LanguageCheckerVisitor extends ASTVisitor {
       List<String> asList = Arrays.asList(keywords);
       if (!StringUtils.isEmpty(conditionName) && !"-".equals(conditionName)
               && !asList.contains(conditionName) && !implicitString.equals(cond.getName())
-              && !conditionExtensions.keySet().contains(cond)) {
+              && !conditionExtensions.keySet().contains(conditionName)) {
         IProblem problem = problemFactory.createUnknownConditionProblem(cond);
         pr.reportProblem(problem);
       }