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:
parent
e802cfa8eb
commit
3c12c715c8
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue