Skip to content

Commit

Permalink
small bug fix
Browse files Browse the repository at this point in the history
  • Loading branch information
akamel001 committed Apr 8, 2012
1 parent 16a2009 commit ab228c6
Show file tree
Hide file tree
Showing 4 changed files with 2 additions and 6 deletions.
2 changes: 1 addition & 1 deletion identifiers/IPP.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ public boolean equals(Object other) {

@Override
public int hashCode() {
return getIp().toString().hashCode() + getPort();
return getIp().hashCode() + getPort();
}

public static IPP getIPP(String ippString) {
Expand Down
1 change: 0 additions & 1 deletion request/Form.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package request;

import identifiers.CookieVal;
import identifiers.FormData;

import java.io.IOException;

Expand Down
1 change: 0 additions & 1 deletion request/memberRefresh.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package request;

import identifiers.CookieVal;
import identifiers.FormData;

import java.io.IOException;

Expand Down
4 changes: 1 addition & 3 deletions server/SimpleDB.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,6 @@
import com.amazonaws.services.simpledb.model.SelectResult;
import com.amazonaws.services.simpledb.model.UpdateCondition;


public final class SimpleDB extends Thread {

public static final String MEMBER_LIST_DOMAIN = "CS5300PROJECT1BSDBMbrList9000";
Expand All @@ -39,8 +38,7 @@ public final class SimpleDB extends Thread {
private static AmazonSimpleDBClient sdbc = null;
private static String AttrName = "IPP";

//private static final HashSet<IPP> localMbrList = new HashSet<IPP>();
HashSet<IPP> localMbrList = (HashSet<IPP>) Collections.newSetFromMap(new ConcurrentHashMap<IPP, Boolean>());
Set<IPP> localMbrList = Collections.newSetFromMap(new ConcurrentHashMap<IPP, Boolean>());
private static SimpleDB db = new SimpleDB();

private SimpleDB() {
Expand Down

0 comments on commit ab228c6

Please sign in to comment.