diff options
author | Manuel Bentele | 2021-03-26 08:36:18 +0100 |
---|---|---|
committer | Manuel Bentele | 2021-03-26 08:36:18 +0100 |
commit | 95e635aba0c40b716b57b9f6ccf751fca904a56b (patch) | |
tree | 0623ad62c973b03894ef259a9c9fad0bd1388e9e | |
parent | Enable Java compiler warnings (diff) | |
download | proxy-vole-master.tar.gz proxy-vole-master.tar.xz proxy-vole-master.zip |
-rw-r--r-- | src/main/java/com/btr/proxy/test/ProxyTester.java | 4 | ||||
-rw-r--r-- | src/test/java/com/btr/proxy/util/ProxyUtilTest.java | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/src/main/java/com/btr/proxy/test/ProxyTester.java b/src/main/java/com/btr/proxy/test/ProxyTester.java index c01c7bb..a497f86 100644 --- a/src/main/java/com/btr/proxy/test/ProxyTester.java +++ b/src/main/java/com/btr/proxy/test/ProxyTester.java @@ -35,7 +35,7 @@ public class ProxyTester extends JFrame { private static final long serialVersionUID = 1L; - private JComboBox modes; + private JComboBox<ProxySearch.Strategy> modes; private JButton testButton; private JTextField urlField; @@ -62,7 +62,7 @@ public class ProxyTester extends JFrame { p.add(new JLabel("Mode:")); - this.modes = new JComboBox(ProxySearch.Strategy.values()); + this.modes = new JComboBox<ProxySearch.Strategy>(ProxySearch.Strategy.values()); p.add(this.modes); p.add(new JLabel("URL:")); diff --git a/src/test/java/com/btr/proxy/util/ProxyUtilTest.java b/src/test/java/com/btr/proxy/util/ProxyUtilTest.java index ffcf03e..a95490a 100644 --- a/src/test/java/com/btr/proxy/util/ProxyUtilTest.java +++ b/src/test/java/com/btr/proxy/util/ProxyUtilTest.java @@ -1,6 +1,6 @@ package com.btr.proxy.util; -import static junit.framework.Assert.assertEquals; +import static org.junit.Assert.assertEquals; import java.net.Proxy; import java.net.ProxySelector; |