summaryrefslogtreecommitdiff
path: root/src/main
diff options
context:
space:
mode:
authorGeorge Fraser <george@fivetran.com>2019-01-07 00:53:30 -0800
committerGeorge Fraser <george@fivetran.com>2019-01-07 00:53:30 -0800
commita72728087513660d17cdf9919b0c5fd50a084b2a (patch)
treeece51511d03c383a70eb4ed4119a44c692577756 /src/main
parentba156f46e00f2075f2f11fb18e72bcd09deb1192 (diff)
downloadjava-language-server-a72728087513660d17cdf9919b0c5fd50a084b2a.zip
Unused
Diffstat (limited to 'src/main')
-rw-r--r--src/main/java/org/javacs/WarnUnused.java1
1 files changed, 1 insertions, 0 deletions
diff --git a/src/main/java/org/javacs/WarnUnused.java b/src/main/java/org/javacs/WarnUnused.java
index 614c887..b3a2237 100644
--- a/src/main/java/org/javacs/WarnUnused.java
+++ b/src/main/java/org/javacs/WarnUnused.java
@@ -7,6 +7,7 @@ import javax.lang.model.element.*;
class WarnUnused extends TreePathScanner<Void, Void> {
private final Trees trees;
+ // TODO ignore writes when calculating used
private final Set<Element> declared = new HashSet<>(), used = new HashSet<>();
WarnUnused(JavacTask task) {