From 2540df295939c62d81262fcfa60573fb9f469a6e Mon Sep 17 00:00:00 2001 From: Ziver Koc Date: Sun, 18 Sep 2011 13:20:51 +0000 Subject: [PATCH] Removed some warnings --- src/zutil/net/torrent/TorrentTracker.java | 2 +- src/zutil/test/ImageProcessorTest.java | 3 ++- src/zutil/test/upload_test.html | 2 +- 3 files changed, 4 insertions(+), 3 deletions(-) diff --git a/src/zutil/net/torrent/TorrentTracker.java b/src/zutil/net/torrent/TorrentTracker.java index cd77a9b..da42cbe 100644 --- a/src/zutil/net/torrent/TorrentTracker.java +++ b/src/zutil/net/torrent/TorrentTracker.java @@ -39,7 +39,7 @@ public class TorrentTracker { - private void update() throws IOException { + public void update() throws IOException { HttpClient request = HttpClient.GET(); request.setURL( trackerURL ); HttpHeaderParser response = request.send(); diff --git a/src/zutil/test/ImageProcessorTest.java b/src/zutil/test/ImageProcessorTest.java index cda581a..1bd2592 100644 --- a/src/zutil/test/ImageProcessorTest.java +++ b/src/zutil/test/ImageProcessorTest.java @@ -52,7 +52,7 @@ import zutil.image.filters.ResizeImage; import zutil.image.filters.SobelEdgeDetectionFilter; import zutil.image.filters.SpotLightFilter; -@SuppressWarnings("unused") +@SuppressWarnings({ "unused", "rawtypes" }) public class ImageProcessorTest implements ProgressListener{ private static String imgPath = "test.gif"; //private static String imgPath = "test2.jpg"; @@ -65,6 +65,7 @@ public class ImageProcessorTest implements ProgressListener{ new ImageProcessorTest(); } + @SuppressWarnings("unchecked") public ImageProcessorTest(){ JFrame frame = getJFrame(); BufferedImage img = null; diff --git a/src/zutil/test/upload_test.html b/src/zutil/test/upload_test.html index 7bb89ef..b890bb0 100644 --- a/src/zutil/test/upload_test.html +++ b/src/zutil/test/upload_test.html @@ -33,7 +33,7 @@
- +