about summary refs log tree commit diff stats
path: root/client/trunk
diff options
context:
space:
mode:
authorKelly Rauchenberger <fefferburbia@gmail.com>2008-08-01 21:01:25 +0000
committerKelly Rauchenberger <fefferburbia@gmail.com>2008-08-01 21:01:25 +0000
commitcb70c33cd4372c481eae796ec4fda2c89fe03925 (patch)
tree3840ac5a26111f927c6aee496c103760706f1566 /client/trunk
parentfedb894ead244674eb27a1dc5027a3366c25b859 (diff)
downloadinstadisc-cb70c33cd4372c481eae796ec4fda2c89fe03925.tar.gz
instadisc-cb70c33cd4372c481eae796ec4fda2c89fe03925.tar.bz2
instadisc-cb70c33cd4372c481eae796ec4fda2c89fe03925.zip
Client: Replaced "unsafe" function
Fixes #2
Diffstat (limited to 'client/trunk')
-rw-r--r--client/trunk/src/com/fourisland/instadisc/Item/Item.java5
1 files changed, 3 insertions, 2 deletions
diff --git a/client/trunk/src/com/fourisland/instadisc/Item/Item.java b/client/trunk/src/com/fourisland/instadisc/Item/Item.java index 776a884..6510c60 100644 --- a/client/trunk/src/com/fourisland/instadisc/Item/Item.java +++ b/client/trunk/src/com/fourisland/instadisc/Item/Item.java
@@ -13,6 +13,7 @@ import java.awt.TrayIcon.MessageType;
13import java.net.MalformedURLException; 13import java.net.MalformedURLException;
14import java.net.URL; 14import java.net.URL;
15import java.util.HashMap; 15import java.util.HashMap;
16import java.util.Iterator;
16import java.util.logging.Level; 17import java.util.logging.Level;
17import java.util.logging.Logger; 18import java.util.logging.Logger;
18 19
@@ -39,7 +40,7 @@ public class Item {
39 { 40 {
40 Wrapper.dropFromTopItem(); 41 Wrapper.dropFromTopItem();
41 } 42 }
42 43
43 try { 44 try {
44 com.fourisland.instadisc.Database.Item di = new com.fourisland.instadisc.Database.Item(); 45 com.fourisland.instadisc.Database.Item di = new com.fourisland.instadisc.Database.Item();
45 di.setID(Integer.decode(headerMap.get("ID"))); 46 di.setID(Integer.decode(headerMap.get("ID")));
@@ -48,7 +49,7 @@ public class Item {
48 di.setAuthor(headerMap.get("Author")); 49 di.setAuthor(headerMap.get("Author"));
49 di.setURL(new URL(headerMap.get("URL")).toString()); 50 di.setURL(new URL(headerMap.get("URL")).toString());
50 51
51 HashMap<String, String> temp = (HashMap<String, String>) headerMap.clone(); 52 HashMap<String, String> temp = new HashMap(headerMap);
52 temp.remove("ID"); 53 temp.remove("ID");
53 temp.remove("Verification"); 54 temp.remove("Verification");
54 temp.remove("Verification-ID"); 55 temp.remove("Verification-ID");