aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core.test
diff options
context:
space:
mode:
authorMarc R. Hoffmann <hoffmann@mountainminds.com>2016-04-19 22:27:50 +0200
committerMarc R. Hoffmann <hoffmann@mountainminds.com>2016-04-19 22:27:50 +0200
commit5670443f4221092ce27882a5e97e3458c3cd8478 (patch)
tree17404992cef15cb91af89aeb56a69663d37dd3de /org.jacoco.core.test
parentc181f60ce08ec9b0a6f59a2391c33c41bca8f1c0 (diff)
downloadjacoco-5670443f4221092ce27882a5e97e3458c3cd8478.tar.gz
Fix compiler warning after plexus-utils upgrade (#402)
Fix compiler warnings after plexus-utils upgrade
Diffstat (limited to 'org.jacoco.core.test')
-rw-r--r--org.jacoco.core.test/src/org/jacoco/core/runtime/ModifiedSystemClassRuntimeTest.java18
1 files changed, 9 insertions, 9 deletions
diff --git a/org.jacoco.core.test/src/org/jacoco/core/runtime/ModifiedSystemClassRuntimeTest.java b/org.jacoco.core.test/src/org/jacoco/core/runtime/ModifiedSystemClassRuntimeTest.java
index 165159fd..ebf6b1e6 100644
--- a/org.jacoco.core.test/src/org/jacoco/core/runtime/ModifiedSystemClassRuntimeTest.java
+++ b/org.jacoco.core.test/src/org/jacoco/core/runtime/ModifiedSystemClassRuntimeTest.java
@@ -51,13 +51,13 @@ public class ModifiedSystemClassRuntimeTest extends RuntimeTestBase {
private static final String TARGET_CLASS_NAME = "org/jacoco/core/runtime/ModifiedSystemClassRuntimeTest";
/**
- * Note that we use Proxy here to mock {@link Instrumentation}, because JDK 9 adds new method "addModule",
- * whose parameter depends on class "java.lang.reflect.Module" introduced in JDK 9.
+ * Note that we use Proxy here to mock {@link Instrumentation}, because JDK
+ * 9 adds new method "addModule", whose parameter depends on class
+ * "java.lang.reflect.Module" introduced in JDK 9.
*/
private Instrumentation newInstrumentationMock() {
- return (Instrumentation) Proxy.newProxyInstance(
- getClass().getClassLoader(),
- new Class[] { Instrumentation.class },
+ return (Instrumentation) Proxy.newProxyInstance(getClass()
+ .getClassLoader(), new Class[] { Instrumentation.class },
new MyInvocationHandler());
}
@@ -77,8 +77,8 @@ public class ModifiedSystemClassRuntimeTest extends RuntimeTestBase {
final byte[] data = TargetLoader
.getClassDataAsBytes(ModifiedSystemClassRuntimeTest.class);
verifyInstrumentedClass(TARGET_CLASS_NAME,
- transformer.transform((ClassLoader) null, TARGET_CLASS_NAME, null,
- null, data));
+ transformer.transform((ClassLoader) null,
+ TARGET_CLASS_NAME, null, null, data));
// Other classes will not be instrumented:
assertNull(transformer.transform(getClass().getClassLoader(),
@@ -91,11 +91,11 @@ public class ModifiedSystemClassRuntimeTest extends RuntimeTestBase {
/**
* {@link Instrumentation#removeTransformer(ClassFileTransformer)}
*/
- boolean removeTransformer() {
+ Boolean removeTransformer() {
assertTrue(added);
assertFalse(removed);
removed = true;
- return true;
+ return Boolean.TRUE;
}
public Object invoke(Object proxy, Method method, Object[] args)