From 4019ebe20786059fdce5b25c7cf6d746a083eef3 Mon Sep 17 00:00:00 2001 From: Jonas Herzig Date: Wed, 25 May 2022 07:35:00 +0200 Subject: Support matching lambda expressions with @Pattern --- src/testA/java/a/pkg/A.java | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'src/testA') diff --git a/src/testA/java/a/pkg/A.java b/src/testA/java/a/pkg/A.java index 1a0dcac..be9bc1b 100644 --- a/src/testA/java/a/pkg/A.java +++ b/src/testA/java/a/pkg/A.java @@ -1,5 +1,8 @@ package a.pkg; +import java.util.function.Function; +import java.util.function.Supplier; + public class A extends AParent implements AInterface { private A a; private int aField; @@ -98,6 +101,12 @@ public class A extends AParent implements AInterface { new A() {}; } + public static void supplier(Supplier supplier) { + } + + public static void function(Function func) { + } + public class Inner { private int aField; } -- cgit