Skip to content

Commit

Permalink
Fixing behavior for malformed ItemPaths.
Browse files Browse the repository at this point in the history
  • Loading branch information
mederly committed Nov 28, 2015
1 parent e9b7d7f commit 131d44c
Showing 1 changed file with 2 additions and 2 deletions.
Expand Up @@ -147,9 +147,9 @@ public static ItemPath subPath(ItemPath prefix, ItemPathSegment subSegment) {
}

private void add(QName qname) {
if (qname.equals(PrismConstants.T_PARENT)) {
if (PrismConstants.T_PARENT.equals(qname)) {
this.segments.add(new ParentPathSegment());
} else if (qname.equals(PrismConstants.T_OBJECT_REFERENCE)) {
} else if (PrismConstants.T_OBJECT_REFERENCE.equals(qname)) {
this.segments.add(new ObjectReferencePathSegment());
} else {
this.segments.add(new NameItemPathSegment(qname));
Expand Down

0 comments on commit 131d44c

Please sign in to comment.