Skip to content

Commit

Permalink
0004943: Overrode some equals() methods to fix a UI issue
Browse files Browse the repository at this point in the history
  • Loading branch information
evan-miller-jumpmind committed Oct 4, 2021
1 parent 761be44 commit aac69c1
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 0 deletions.
Expand Up @@ -214,5 +214,14 @@ public int getTotalBatchCount() {
public int getTotalBatchLoaded() {
return this.setupBatchLoaded + this.dataBatchLoaded + this.finalizeBatchLoaded;
}

@Override
public boolean equals(Object obj) {
if (obj != null && obj instanceof TableReloadStatus) {
TableReloadStatus status = (TableReloadStatus) obj;
return status.loadId == loadId && status.sourceNodeId != null && status.sourceNodeId.equals(sourceNodeId);
}
return false;
}

}
Expand Up @@ -350,5 +350,10 @@ protected String[] parseColumnNames(String argColumnNames) {
throw new SymmetricException("Failed to parse columns [" + argColumnNames + "]", ex);
}
}

@Override
public boolean equals(Object obj) {
return obj != null && obj instanceof TriggerHistory && ((TriggerHistory) obj).triggerHistoryId == triggerHistoryId;
}

}

0 comments on commit aac69c1

Please sign in to comment.