fixed warnings

This commit is contained in:
Ziver Koc 2010-08-14 15:47:42 +00:00
parent 915007b3c4
commit 8d17765deb
2 changed files with 3 additions and 3 deletions

View file

@ -63,7 +63,7 @@ public class Torrent {
created_by = (String)dataMap.get("created by");
main_tracker = (String)dataMap.get("announce");
tracker_list = (ArrayList<String>)dataMap.get("announce-list");
info_hash = (HashMap)dataMap.get("info");
info_hash = (HashMap<String, Object>)dataMap.get("info");
is_private = (((Integer)dataMap.get("private")) != 0);
}

View file

@ -75,7 +75,7 @@ public class TorrentParser {
case 'l':
//System.out.println("Found List at "+index);
data.deleteCharAt(0);
LinkedList list = new LinkedList();
LinkedList<Object> list = new LinkedList<Object>();
c = data.charAt(0);
while(c != 'e'){
list.add(decode_BEncoded(data));
@ -94,7 +94,7 @@ public class TorrentParser {
case 'd':
//System.out.println("Found Dictionary at "+index);
data.deleteCharAt(0);
HashMap map = new HashMap();
HashMap<Object,Object> map = new HashMap<Object,Object>();
c = data.charAt(0);
while(c != 'e'){
Object tmp2 = decode_BEncoded(data);