forked from phoedos/pmd
Fix pmd warning
This commit is contained in:
@ -87,8 +87,8 @@ public class ScalaTokenizer implements Tokenizer {
|
|||||||
pos.endColumn() + 1);
|
pos.endColumn() + 1);
|
||||||
tokenEntries.add(cpdToken);
|
tokenEntries.add(cpdToken);
|
||||||
}
|
}
|
||||||
} catch (@SuppressWarnings("PMD.AvoidInstanceofChecksInCatchClause") Exception e) {
|
} catch (Exception e) {
|
||||||
if (e instanceof TokenizeException) {
|
if (e instanceof TokenizeException) { // NOPMD
|
||||||
// cannot catch it as it's a checked exception and Scala sneaky throws
|
// cannot catch it as it's a checked exception and Scala sneaky throws
|
||||||
TokenizeException tokE = (TokenizeException) e;
|
TokenizeException tokE = (TokenizeException) e;
|
||||||
Position pos = tokE.pos();
|
Position pos = tokE.pos();
|
||||||
|
Reference in New Issue
Block a user