Fix groovy columns

This commit is contained in:
Clément Fournier
2020-06-14 01:04:32 +02:00
parent b976d6550d
commit 59dfa15269
2 changed files with 12 additions and 3 deletions

View File

@ -87,7 +87,7 @@ public class ScalaTokenizer implements Tokenizer {
pos.endColumn() + 1);
tokenEntries.add(cpdToken);
}
} catch (Throwable e) {
} catch (@SuppressWarnings("PMD.AvoidInstanceofChecksInCatchClause") Exception e) {
if (e instanceof TokenizeException) {
// cannot catch it as it's a checked exception and Scala sneaky throws
TokenizeException tokE = (TokenizeException) e;