From 1e2b76288d0191fa2e2621824c2c2700c64d9939 Mon Sep 17 00:00:00 2001 From: Minecrell Date: Sun, 24 Nov 2019 13:47:53 +0100 Subject: [PATCH] Remap static imports. Fixes #5 --- .../java/org/cadixdev/mercury/remapper/RemapperVisitor.java | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/src/main/java/org/cadixdev/mercury/remapper/RemapperVisitor.java b/src/main/java/org/cadixdev/mercury/remapper/RemapperVisitor.java index 62efb02..afb5615 100644 --- a/src/main/java/org/cadixdev/mercury/remapper/RemapperVisitor.java +++ b/src/main/java/org/cadixdev/mercury/remapper/RemapperVisitor.java @@ -199,6 +199,11 @@ public boolean visit(PackageDeclaration node) { @Override public boolean visit(ImportDeclaration node) { + if (node.isStatic()) { + // Remap class/member reference separately + return true; + } + IBinding binding = node.resolveBinding(); if (binding != null) { switch (binding.getKind()) {