diff --git a/extension/jsf-ftest/src/test/java/org/jboss/arquillian/warp/jsf/ftest/BasicJsfTest.java b/extension/jsf-ftest/src/test/java/org/jboss/arquillian/warp/jsf/ftest/BasicJsfTest.java index d5447e66..ec39a16d 100644 --- a/extension/jsf-ftest/src/test/java/org/jboss/arquillian/warp/jsf/ftest/BasicJsfTest.java +++ b/extension/jsf-ftest/src/test/java/org/jboss/arquillian/warp/jsf/ftest/BasicJsfTest.java @@ -119,6 +119,7 @@ public void changed_input_value_has_been_applied() { updatedName = myBean.getName(); } + @SuppressWarnings("unused") public String getUpdatedName() { return updatedName; } diff --git a/ftest/src/test/java/org/jboss/arquillian/warp/ftest/failure/TestSerializationFailurePropagation.java b/ftest/src/test/java/org/jboss/arquillian/warp/ftest/failure/TestSerializationFailurePropagation.java index 406d0065..3e9954b6 100644 --- a/ftest/src/test/java/org/jboss/arquillian/warp/ftest/failure/TestSerializationFailurePropagation.java +++ b/ftest/src/test/java/org/jboss/arquillian/warp/ftest/failure/TestSerializationFailurePropagation.java @@ -82,6 +82,7 @@ public void perform() { .inspect(new Inspection() { private static final long serialVersionUID = 1L; + @SuppressWarnings("unused") private Object payload = new NonSerializableObject(); @BeforeServlet @@ -113,6 +114,7 @@ public void perform() { .inspect(new Inspection() { private static final long serialVersionUID = 1L; + @SuppressWarnings("unused") private Object payload; @BeforeServlet diff --git a/impl/src/main/java/org/jboss/arquillian/warp/impl/client/filter/matcher/DefaultHttpHeaderMatcherBuilder.java b/impl/src/main/java/org/jboss/arquillian/warp/impl/client/filter/matcher/DefaultHttpHeaderMatcherBuilder.java index cc4a32d6..a4f2f0ff 100644 --- a/impl/src/main/java/org/jboss/arquillian/warp/impl/client/filter/matcher/DefaultHttpHeaderMatcherBuilder.java +++ b/impl/src/main/java/org/jboss/arquillian/warp/impl/client/filter/matcher/DefaultHttpHeaderMatcherBuilder.java @@ -99,7 +99,7 @@ public boolean matches(HttpRequest request) { for (String val : values) { - if (val.equals(values)) { + if (val.equals(value)) { return true; } diff --git a/impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/ProxyURLProvider.java b/impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/ProxyURLProvider.java index 0152c964..0c711bbb 100644 --- a/impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/ProxyURLProvider.java +++ b/impl/src/main/java/org/jboss/arquillian/warp/impl/client/proxy/ProxyURLProvider.java @@ -97,7 +97,7 @@ private URL getProxyUrl(URL realURL) { return proxyURL; } - private Injector injector() { + /*private Injector injector() { return injector.get(); - } + }*/ } diff --git a/impl/src/main/java/org/jboss/arquillian/warp/impl/utils/Platform.java b/impl/src/main/java/org/jboss/arquillian/warp/impl/utils/Platform.java index 2aaf5a49..f13f1d9c 100644 --- a/impl/src/main/java/org/jboss/arquillian/warp/impl/utils/Platform.java +++ b/impl/src/main/java/org/jboss/arquillian/warp/impl/utils/Platform.java @@ -17,9 +17,6 @@ package org.jboss.arquillian.warp.impl.utils; -import java.util.regex.Matcher; -import java.util.regex.Pattern; - /** * Represents the known and supported Platforms that WebDriver runs on. This is pretty close to the * Operating System, but differs slightly, because this class is used to extract information such as @@ -135,10 +132,6 @@ public Platform family() { }, ANDROID("android", "dalvik") { - public String getLineEnding() { - return "\n"; - } - @Override public Platform family() { return LINUX; @@ -156,12 +149,13 @@ public boolean is(Platform compareWith) { }; private final String[] partOfOsName; - private final int minorVersion; - private final int majorVersion; + //private final int minorVersion; + //private final int majorVersion; Platform(String... partOfOsName) { this.partOfOsName = partOfOsName; + /*Unused... String version = System.getProperty("os.version", "0.0.0"); int major = 0; int min = 0; @@ -178,7 +172,7 @@ public boolean is(Platform compareWith) { } majorVersion = major; - minorVersion = min; + minorVersion = min;*/ } public String[] getPartOfOsName() { diff --git a/impl/src/test/java/org/jboss/arquillian/warp/impl/client/eventbus/TestCommandEventBusLifecycle.java b/impl/src/test/java/org/jboss/arquillian/warp/impl/client/eventbus/TestCommandEventBusLifecycle.java index caf996c0..d63be6dc 100644 --- a/impl/src/test/java/org/jboss/arquillian/warp/impl/client/eventbus/TestCommandEventBusLifecycle.java +++ b/impl/src/test/java/org/jboss/arquillian/warp/impl/client/eventbus/TestCommandEventBusLifecycle.java @@ -85,9 +85,11 @@ public void test() { } private static class StartBlockingObserver { + @SuppressWarnings("unused") public void blockStart(@Observes EventContext ctx) { } + @SuppressWarnings("unused") public void blockStop(@Observes EventContext ctx) { } } diff --git a/impl/src/test/java/org/jboss/arquillian/warp/impl/client/separation/TestSeparateInvocator.java b/impl/src/test/java/org/jboss/arquillian/warp/impl/client/separation/TestSeparateInvocator.java index b9728db0..4afd536c 100644 --- a/impl/src/test/java/org/jboss/arquillian/warp/impl/client/separation/TestSeparateInvocator.java +++ b/impl/src/test/java/org/jboss/arquillian/warp/impl/client/separation/TestSeparateInvocator.java @@ -47,9 +47,16 @@ public Result run(Argument argument, String string) { } } + /** + * Must be public. If not the test is failing: + * "java.lang.IllegalAccessError: tried to access class org.jboss.arquillian.warp.impl.client.separation.TestSeparateInvocator$Result + * from class com.sun.proxy.$Proxy4" + */ + @SuppressWarnings("serial") public static class Result implements Serializable { } + @SuppressWarnings("serial") public static class Argument implements Serializable { } } diff --git a/impl/src/test/java/org/jboss/arquillian/warp/impl/client/separation/TestSeparatedClassLoader.java b/impl/src/test/java/org/jboss/arquillian/warp/impl/client/separation/TestSeparatedClassLoader.java index f2239c0b..845992a4 100644 --- a/impl/src/test/java/org/jboss/arquillian/warp/impl/client/separation/TestSeparatedClassLoader.java +++ b/impl/src/test/java/org/jboss/arquillian/warp/impl/client/separation/TestSeparatedClassLoader.java @@ -156,6 +156,7 @@ public Class answer(InvocationOnMock invocation) throws Throwable { SeparatedClassLoader separated = new SeparatedClassLoader(cl1, cl2); try { + @SuppressWarnings("unused") Class loadedClass = separated.loadClass("SomeNonExistingClassName"); fail("class should not be found"); } catch (ClassNotFoundException e) { diff --git a/impl/src/test/java/org/jboss/arquillian/warp/impl/client/transformation/TestTransformedInspection.java b/impl/src/test/java/org/jboss/arquillian/warp/impl/client/transformation/TestTransformedInspection.java index be507cef..c4c22ca8 100644 --- a/impl/src/test/java/org/jboss/arquillian/warp/impl/client/transformation/TestTransformedInspection.java +++ b/impl/src/test/java/org/jboss/arquillian/warp/impl/client/transformation/TestTransformedInspection.java @@ -127,7 +127,6 @@ public static Inspection getAnonymousServerInspection() { Inspection inspection = new Inspection() { private static final long serialVersionUID = 1L; - @SuppressWarnings("unused") @BeforeServlet public String get() { return "Test"; diff --git a/impl/src/test/java/org/jboss/arquillian/warp/impl/shared/inspection/SharingClass.java b/impl/src/test/java/org/jboss/arquillian/warp/impl/shared/inspection/SharingClass.java index d51010e4..5b283670 100644 --- a/impl/src/test/java/org/jboss/arquillian/warp/impl/shared/inspection/SharingClass.java +++ b/impl/src/test/java/org/jboss/arquillian/warp/impl/shared/inspection/SharingClass.java @@ -21,7 +21,7 @@ import org.jboss.arquillian.warp.Inspection; import org.jboss.arquillian.warp.impl.shared.RequestPayload; -@SuppressWarnings("unused") +@SuppressWarnings({ "unused", "serial" }) public class SharingClass implements Serializable { public RequestPayload getStaticInnerClass() { diff --git a/impl/src/test/java/org/jboss/arquillian/warp/impl/testutils/TestDynamicClassLoading.java b/impl/src/test/java/org/jboss/arquillian/warp/impl/testutils/TestDynamicClassLoading.java index 3494ddd3..f43fa32d 100644 --- a/impl/src/test/java/org/jboss/arquillian/warp/impl/testutils/TestDynamicClassLoading.java +++ b/impl/src/test/java/org/jboss/arquillian/warp/impl/testutils/TestDynamicClassLoading.java @@ -25,6 +25,7 @@ @RunWith(SeparatedClassloaderRunner.class) public class TestDynamicClassLoading { + @SuppressWarnings({ "unused", "serial" }) private Inspection inspection = new Inspection() { }; @@ -35,6 +36,7 @@ static JavaArchive getClasspath() { @Test public void test() { + @SuppressWarnings("unused") String test = "xyz"; } }