Skip to content

Commit

Permalink
Remove NavigablePath#hashCode field
Browse files Browse the repository at this point in the history
  • Loading branch information
dreab8 committed Feb 18, 2020
1 parent c355ece commit 8defa96
Showing 1 changed file with 1 addition and 11 deletions.
Expand Up @@ -24,8 +24,6 @@ public class NavigablePath implements DotIdentifierSequence {
private final String fullPath;
private final String identifierForTableGroup;

private final int hashCode;

public NavigablePath(NavigablePath parent, String navigableName) {
this.parent = parent;

Expand All @@ -51,9 +49,6 @@ public NavigablePath(NavigablePath parent, String navigableName) {
identifierForTableGroup = navigableName;
}
}


this.hashCode = fullPath.hashCode();
}

public NavigablePath(String localName) {
Expand All @@ -64,9 +59,6 @@ public NavigablePath(String rootName, String alias) {
this.parent = null;
this.fullPath = alias == null ? rootName : rootName + "(" + alias + ")";
identifierForTableGroup = rootName;
;

this.hashCode = fullPath.hashCode();
}

public NavigablePath(NavigablePath parent, String property, String alias) {
Expand Down Expand Up @@ -98,8 +90,6 @@ public NavigablePath(NavigablePath parent, String property, String alias) {
this.identifierForTableGroup = property;
}
}

this.hashCode = fullPath.hashCode();
}

public NavigablePath() {
Expand Down Expand Up @@ -140,7 +130,7 @@ public String toString() {

@Override
public int hashCode() {
return hashCode;
return fullPath.hashCode();
}

@Override
Expand Down

0 comments on commit 8defa96

Please sign in to comment.