Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -277,8 +277,7 @@ public boolean equals(BufferedImage image, double deviation) {
* @return true if the the provided image and current image are strictly equal.
*/
public boolean equalsWithDiff(BufferedImage image, String resultingImagePath) {
if (this.getImage() == image) return true;
return getImage() != null ? ImageProcessor.imagesAreEqualsWithDiff(getImage(), image, resultingImagePath, 0) : image == null;
return equalsWithDiff(image, resultingImagePath,0);
}

/**
Expand All @@ -298,8 +297,7 @@ public boolean equalsWithDiff(BufferedImage image, String resultingImagePath, do
* @return true if the the provided image and current image are strictly equal.
*/
public boolean equalsWithDiff(Snapshot image, String resultingImagePath) {
if (this == image) return true;
return getImage() != null ? ImageProcessor.imagesAreEqualsWithDiff(getImage(), image.getImage(),resultingImagePath, 0) : image == null;
return equalsWithDiff(image, resultingImagePath,0);
}

/**
Expand Down