Uploaded image for project: 'Stanbol (Retired)'
  1. Stanbol (Retired)
  2. STANBOL-1460

Condition that always returns true

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Open
    • Trivial
    • Resolution: Unresolved
    • None
    • None
    • Entityhub
    • None

    Description

      Hi

      In recent github mirror, I've found the following issue.

      Path: entityhub/generic/core/src/main/java/org/apache/stanbol/entityhub/core/mapping/FieldMappingUtils.java

       69             return fm17.usesWildcard() == fm33.usesWildcard()? //both same Wildcard
       70                 fm17.ignoreField() == fm17.ignoreField()? // both same ignore state
       71                     fm33.getFieldPattern().length()-fm17.getFieldPattern().length(): //longer fi    eld pattern
       72                         fm17.ignoreField()?-1:1: //that with ignore field=true
       73                     !fm17.usesWildcard()?-1:1; //that without wildcard
      

      In Line 70, it should be like this?

      70                 fm17.ignoreField() == fm33.ignoreField()? // both same ignore state
      

      Thanks!

      Attachments

        Activity

          People

            Unassigned Unassigned
            lifove JC
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: