I am getting an error when running my gradle checkstyle task.:
Unable to process files: [(array of files)]
What's strange is if I reset my changes it works fine. Any ideas?
UPDATE I found the line of code causing the issue. It's this line:
if (!(o instanceof final MyObject that)) {
This line is using a Java 16 feature, which compiles for me as that is the java version I am using. However, it seems to cause checkstyle to break. When I convert this line to traditional Java (without the variable declaration), checkstyle works fine. This seems broken, anyone experience this?