aboutsummaryrefslogtreecommitdiff
path: root/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets
diff options
context:
space:
mode:
Diffstat (limited to 'org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets')
-rw-r--r--org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/BadCycleInterface.java8
-rw-r--r--org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceDefaultMethodsTarget.java4
-rw-r--r--org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceOnlyDefaultMethodsTarget.java4
-rw-r--r--org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/LambdaExpressionsTarget.java11
4 files changed, 15 insertions, 12 deletions
diff --git a/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/BadCycleInterface.java b/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/BadCycleInterface.java
index c2b1519f..73ff3349 100644
--- a/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/BadCycleInterface.java
+++ b/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/BadCycleInterface.java
@@ -16,7 +16,7 @@ public class BadCycleInterface {
public interface Base {
static final Object BASE_CONST = new Child() {
{
- Stubs.nop("base clinit"); // $line-1$
+ Stubs.nop("base clinit"); // $line-baseclinit$
}
}.childDefaultMethod();
@@ -27,17 +27,17 @@ public class BadCycleInterface {
public interface Child extends Base {
static final Object CHILD_CONST = new Object() {
{
- Stubs.nop("child clinit"); // $line-3$
+ Stubs.nop("child clinit"); // $line-childclinit$
}
};
default Object childDefaultMethod() {
- Stubs.nop("child default method"); // $line-2$
+ Stubs.nop("child default method"); // $line-childdefault$
return null;
}
static void childStaticMethod() {
- Stubs.nop("child static method"); // $line-4$
+ Stubs.nop("child static method"); // $line-childstatic$
}
}
diff --git a/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceDefaultMethodsTarget.java b/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceDefaultMethodsTarget.java
index 4bd91b39..76964ebe 100644
--- a/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceDefaultMethodsTarget.java
+++ b/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceDefaultMethodsTarget.java
@@ -34,5 +34,9 @@ public interface InterfaceDefaultMethodsTarget {
m1();
}
}
+
+ public static void main(String[] args) {
+ new Impl();
+ }
}
diff --git a/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceOnlyDefaultMethodsTarget.java b/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceOnlyDefaultMethodsTarget.java
index a27409e9..b2d09f66 100644
--- a/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceOnlyDefaultMethodsTarget.java
+++ b/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/InterfaceOnlyDefaultMethodsTarget.java
@@ -33,4 +33,8 @@ public interface InterfaceOnlyDefaultMethodsTarget {
}
}
+ public static void main(String[] args) {
+ new Impl();
+ }
+
}
diff --git a/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/LambdaExpressionsTarget.java b/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/LambdaExpressionsTarget.java
index e5e33c89..e1b9b2dd 100644
--- a/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/LambdaExpressionsTarget.java
+++ b/org.jacoco.core.test/src-java8/org/jacoco/core/test/validation/targets/LambdaExpressionsTarget.java
@@ -18,11 +18,10 @@ import static org.jacoco.core.test.validation.targets.Stubs.nop;
/**
* This test target contains different lambda expressions.
*/
-public class LambdaExpressionsTarget implements Runnable {
+public class LambdaExpressionsTarget {
+
+ public static void main(String[] args) {
- @Override
- public void run() {
-
exec(() -> {
nop(); // $line-executedlambdabody$
});
@@ -30,11 +29,7 @@ public class LambdaExpressionsTarget implements Runnable {
noexec(() -> {
nop(); // $line-notexecutedlambdabody$
});
-
- }
- public static void main(String[] args) {
- new LambdaExpressionsTarget().run();
}
}