Changeset 103:f83eb8b335b1 in AnnotationManagerN4J for src


Ignore:
Timestamp:
Feb 9, 2017, 8:17:04 PM (7 years ago)
Author:
casties
Branch:
default
Message:

fix problem with anonymous being different.

Location:
src/main/java/de/mpiwg/itgroup/annotations
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • src/main/java/de/mpiwg/itgroup/annotations/Actor.java

    r88 r103  
    5555        if (person == null) return false;
    5656        if (person.equals(this)) return true;
    57         if (person.getIdString().equals(this.getIdString())) return true;
     57        if (person.getIdString().equalsIgnoreCase(this.getIdString())) return true;
    5858        if (isGroup() && store != null) {
    5959            // check if person in group
     
    149149            id = uri.replace(prefix, "");
    150150        }
     151        if (id == null && uri != null) {
     152                // accept uri without prefix
     153                id = uri;
     154        }
    151155        return id;
    152156    }
  • src/main/java/de/mpiwg/itgroup/annotations/Person.java

    r102 r103  
    100100     */
    101101    public static Person getAnonymous() {
    102         return new Person("anonymous", "Anonymous");
     102        return new Person("anonymous", null, "Anonymous");
    103103    }
    104104
Note: See TracChangeset for help on using the changeset viewer.