1
0
Fork 0
mirror of https://github.com/crawler-commons/crawler-commons synced 2024-05-24 19:36:06 +02:00

Fix object comparison on testing.

This commit is contained in:
Aurelien Violette 2018-12-03 12:55:30 +01:00
parent e802cfa8eb
commit 3c12c715c8

View File

@ -456,7 +456,7 @@ public class VideoAttributes extends ExtensionMetadata {
}
VideoPrice that = (VideoPrice) other;
return Objects.equals(currency, that.currency) //
&& price == that.price //
&& Objects.equals(price, that.price) //
&& type == that.type //
&& Objects.equals(resolution, that.resolution);
}
@ -477,7 +477,7 @@ public class VideoAttributes extends ExtensionMetadata {
return price;
}
public void setPrice(float price) {
public void setPrice(Float price) {
this.price = price;
}