diff options
author | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-01 21:01:25 +0000 |
---|---|---|
committer | Kelly Rauchenberger <fefferburbia@gmail.com> | 2008-08-01 21:01:25 +0000 |
commit | cb70c33cd4372c481eae796ec4fda2c89fe03925 (patch) | |
tree | 3840ac5a26111f927c6aee496c103760706f1566 /client/trunk/src | |
parent | fedb894ead244674eb27a1dc5027a3366c25b859 (diff) | |
download | instadisc-cb70c33cd4372c481eae796ec4fda2c89fe03925.tar.gz instadisc-cb70c33cd4372c481eae796ec4fda2c89fe03925.tar.bz2 instadisc-cb70c33cd4372c481eae796ec4fda2c89fe03925.zip |
Client: Replaced "unsafe" function
Fixes #2
Diffstat (limited to 'client/trunk/src')
-rw-r--r-- | client/trunk/src/com/fourisland/instadisc/Item/Item.java | 5 |
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; | |||
13 | import java.net.MalformedURLException; | 13 | import java.net.MalformedURLException; |
14 | import java.net.URL; | 14 | import java.net.URL; |
15 | import java.util.HashMap; | 15 | import java.util.HashMap; |
16 | import java.util.Iterator; | ||
16 | import java.util.logging.Level; | 17 | import java.util.logging.Level; |
17 | import java.util.logging.Logger; | 18 | import 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"); |