From cb70c33cd4372c481eae796ec4fda2c89fe03925 Mon Sep 17 00:00:00 2001 From: Kelly Rauchenberger Date: Fri, 1 Aug 2008 21:01:25 +0000 Subject: Client: Replaced "unsafe" function Fixes #2 --- client/trunk/src/com/fourisland/instadisc/Item/Item.java | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'client/trunk/src') 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; import java.net.MalformedURLException; import java.net.URL; import java.util.HashMap; +import java.util.Iterator; import java.util.logging.Level; import java.util.logging.Logger; @@ -39,7 +40,7 @@ public class Item { { Wrapper.dropFromTopItem(); } - + try { com.fourisland.instadisc.Database.Item di = new com.fourisland.instadisc.Database.Item(); di.setID(Integer.decode(headerMap.get("ID"))); @@ -48,7 +49,7 @@ public class Item { di.setAuthor(headerMap.get("Author")); di.setURL(new URL(headerMap.get("URL")).toString()); - HashMap temp = (HashMap) headerMap.clone(); + HashMap temp = new HashMap(headerMap); temp.remove("ID"); temp.remove("Verification"); temp.remove("Verification-ID"); -- cgit 1.4.1