Skip to content

AssertTrueInstanceofToAssertInstanceOf should add the required import statement #404

@koppor

Description

@koppor

I applied the rule, but get following compiler output:

 > Task :compileTestJava
/home/runner/work/jabref/jabref/src/test/java/org/jabref/logic/bst/BstVMVisitorTest.java:241: error: cannot find symbol
        assertInstanceOf(ParseTree.class, vm.getStack().pop());
        ^
  symbol:   method assertInstanceOf(Class<ParseTree>,Object)

My expection: The code generated by OpenRewrite compiles. It is OK, if the code does not meet checkstyle requirements (import order), but at least it should compile.

(Internal build: https://github.com/JabRef/jabref/actions/runs/6107579864)

Metadata

Metadata

Assignees

Labels

bugSomething isn't working

Type

No type
No fields configured for issues without a type.

Projects

Status
Done

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions