Checkstyle.
authorDa Risk <darisk972@gmail.com>
Tue, 01 Jun 2010 21:48:38 +0200
changeset 761 6c83317a3c84
parent 760 97451b0f4f09
child 762 56d44e5c7081
Checkstyle.
src/com/beem/project/beem/service/Contact.java
src/com/beem/project/beem/ui/Chat.java
--- a/src/com/beem/project/beem/service/Contact.java	Tue Jun 01 21:32:39 2010 +0200
+++ b/src/com/beem/project/beem/service/Contact.java	Tue Jun 01 21:48:38 2010 +0200
@@ -409,11 +409,17 @@
 
     @Override
     public boolean equals(Object other) {
-	if (!(other instanceof Contact) )
+	if (!(other instanceof Contact))
 	    return false;
 	if (other == this)
 	    return true;
 	Contact c = (Contact) other;
 	return c.getJID().equals(getJID());
     }
+
+    @Override
+    public int hashCode() {
+	return mJID.hashCode();
+    }
+
 }
--- a/src/com/beem/project/beem/ui/Chat.java	Tue Jun 01 21:32:39 2010 +0200
+++ b/src/com/beem/project/beem/ui/Chat.java	Tue Jun 01 21:48:38 2010 +0200
@@ -59,7 +59,6 @@
 import android.content.ServiceConnection;
 import android.graphics.Bitmap;
 import android.graphics.BitmapFactory;
-import android.graphics.drawable.LevelListDrawable;
 import android.graphics.Color;
 import android.os.Bundle;
 import android.os.Handler;