Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Unused import statement is added #310

Open
zsrv opened this issue Sep 6, 2023 · 0 comments
Open

Unused import statement is added #310

zsrv opened this issue Sep 6, 2023 · 0 comments
Labels
Priority: Low Low priority Subsystem: Writing Anything concerning how expressions are written

Comments

@zsrv
Copy link

zsrv commented Sep 6, 2023

Version: Vineflower 1.10.0 (commit 6362c94):

Java versions used to compile the original code (same output received for all):

  • Temurin 1.8.0_332-b09
  • Temurin 11.0.15+10
  • Temurin 17.0.3+7

Original code:

import java.util.Map;

public class Example {
    public void myMethod(Map<String, String> map) {
        map.entrySet().forEach(entry -> System.out.println(entry.getValue()));
    }
}

Vineflower output:

import java.util.Map;
import java.util.Map.Entry;

public class Example {
   public void myMethod(Map<String, String> var1) {
      var1.entrySet().forEach(var0 -> System.out.println((String)var0.getValue()));
   }
}

Vineflower output with the previous commit (c5df9f8):

import java.util.Map;

public class Example {
   public void myMethod(Map<String, String> var1) {
      var1.entrySet().forEach(var0 -> System.out.println((String)var0.getValue()));
   }
}
@jaskarth jaskarth added Subsystem: Writing Anything concerning how expressions are written Priority: Low Low priority labels Sep 7, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Priority: Low Low priority Subsystem: Writing Anything concerning how expressions are written
Projects
None yet
Development

No branches or pull requests

2 participants