Skip to content

Commit

Permalink
use equals!
Browse files Browse the repository at this point in the history
  • Loading branch information
qqmyers committed Jan 10, 2023
1 parent 7bf4026 commit 64af6f4
Showing 1 changed file with 3 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -420,9 +420,7 @@ private boolean runForceReplaceFile(Long oldFileId,
if (!this.step_005_loadFileToReplaceById(oldFileId)){
return false;
}
logger.info("DS id: " + ds.getId());
logger.info("Owner id: " + fileToReplace.getOwner().getId());
if(ds.getId()!=fileToReplace.getOwner().getId()) {
if(!ds.getId().equals(fileToReplace.getOwner().getId())) {
this.addErrorSevere(getBundleErr("existing_file_to_replace_not_in_dataset"));
return false;
}
Expand Down Expand Up @@ -464,9 +462,8 @@ private boolean runReplaceFile(Long oldFileId,
if (!this.step_005_loadFileToReplaceById(oldFileId)){
return false;
}
logger.info("DS id: " + ds.getId());
logger.info("Owner id: " + fileToReplace.getOwner().getId());
if(ds.getId()!=fileToReplace.getOwner().getId()) {

if(!ds.getId().equals(fileToReplace.getOwner().getId())) {
this.addErrorSevere(getBundleErr("existing_file_to_replace_not_in_dataset"));
return false;
}
Expand Down

0 comments on commit 64af6f4

Please sign in to comment.