package org.linuxguy.MarketBot;

public class Review {
    public String author;
    public int    rating;
    public String title;
    public String text;
    public long   timestamp;
    public String version;
    public String deviceName;
    public String countryCode;

    @Override
    public boolean equals(Object that) {
        if (that instanceof Review) {
            Review thatReview = (Review)that;

            return safeStringEquals(this.author, thatReview.author) &&
                    this.rating == thatReview.rating &&
                    safeStringEquals(this.title, thatReview.title) &&
                    safeStringEquals(this.text, thatReview.text) &&
                    this.timestamp == thatReview.timestamp &&
                    safeStringEquals(this.version, thatReview.version) &&
                    safeStringEquals(this.deviceName, thatReview.deviceName) &&
                    safeStringEquals(this.countryCode, thatReview.countryCode);
        }

        return false;
    }

    private static boolean safeStringEquals(String s1, String s2) {
        if (s1 == null) {
            return s2 == null;
        } else {
            return s1.equals(s2);
        }
    }
}

@@ -48,16 +48,47 @@
 eview %7B%0A
+    public String productName;%0A
     publ
@@ -457,16 +457,98 @@
  return 
+safeStringEquals(this.productName, thatReview.productName) &&%0A                    
 safeStri

Add productName field to Review