Open
Description
I have the following switch expression
result = switch (literal) {
case Literal.Integer(int value, int ignored) -> value;
case Literal.Long(long value, int ignored) -> value;
case Literal.Float(float value) -> value;
case Literal.Double(double value) -> value;
case Literal.Character(char value) -> value;
case Literal.String(String value) -> value;
};
and it causes the removeUnusedImport
rule to fail with the following message:
src/main/java/daomephsta/unpick/impl/constantmappers/datadriven/ExpressionEvaluator.java:L142 removeUnusedImports(removeUnusedImports) error: '.class' expected
Metadata
Metadata
Assignees
Labels
No labels