diff options
author | George Fraser <george@fivetran.com> | 2019-01-05 13:32:22 -0800 |
---|---|---|
committer | George Fraser <george@fivetran.com> | 2019-01-05 13:32:22 -0800 |
commit | 0d86af4b0fe9ccc4f0a5bb25669ec5906a2c5ed0 (patch) | |
tree | 6a832952b06692bc631869d8e6db4b5f88589da6 /src/test/test-project | |
parent | 7005490c456bbd24ebb9115ed8f78bc3fc8d11e8 (diff) | |
download | java-language-server-0d86af4b0fe9ccc4f0a5bb25669ec5906a2c5ed0.zip |
Don't warn unused lambda params
Diffstat (limited to 'src/test/test-project')
-rw-r--r-- | src/test/test-project/workspace/src/org/javacs/warn/Unused.java | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/src/test/test-project/workspace/src/org/javacs/warn/Unused.java b/src/test/test-project/workspace/src/org/javacs/warn/Unused.java index 94e04b7..7852379 100644 --- a/src/test/test-project/workspace/src/org/javacs/warn/Unused.java +++ b/src/test/test-project/workspace/src/org/javacs/warn/Unused.java @@ -1,9 +1,15 @@ package org.javacs.warn; +import java.util.function.Consumer; + class Unused { void test(int unusedParam) { int unusedLocal = 1; } private int unusedPrivate; + + Consumer<Integer> lambda = unusedLambdaParam -> { + int unusedLocalInLambda; + }; }
\ No newline at end of file |