@@ -347,7 +347,7 @@ public void visit(ClassOrInterfaceType n, Object arg)
347
347
new ClassReferenceLocation (getOwner (classFileContainer ),
348
348
packagePath , "" , "reference" , classValue .line , classValue .columnStart , classValue .columnEnd + 1 ));
349
349
}
350
- catch (ClassCastException | UnsupportedOperationException | IllegalArgumentException e )
350
+ catch (Exception e )
351
351
{
352
352
printException (n , e );
353
353
}
@@ -401,7 +401,7 @@ public void visit(ConstructorDeclaration n, Object arg)
401
401
if (node instanceof ObjectCreationExpr )
402
402
{
403
403
NodeList <BodyDeclaration <?>> bodyDeclarations =
404
- ((ObjectCreationExpr ) node ).getAnonymousClassBody ().orElse (null );
404
+ ((ObjectCreationExpr ) node ).getAnonymousClassBody ().orElse (null );
405
405
if (bodyDeclarations != null )
406
406
{
407
407
if (Objects .requireNonNull (bodyDeclarations .getFirst ().orElse (null )).equals (n ))
@@ -421,10 +421,10 @@ public void visit(ConstructorDeclaration n, Object arg)
421
421
422
422
Value constructor = new Value (n .getName (), range );
423
423
this .classFileContainer .putMethod (constructor .name , new ClassMethodLocation (resolve .getClassName (),
424
- signature , parameters , "declaration" , constructor .line , constructor .columnStart ,
425
- constructor .columnEnd + 1 ));
424
+ signature , parameters , "declaration" , constructor .line , constructor .columnStart ,
425
+ constructor .columnEnd + 1 ));
426
426
}
427
- catch (RuntimeException e )
427
+ catch (Exception e )
428
428
{
429
429
printException (n , e );
430
430
}
@@ -566,7 +566,7 @@ public void visit(FieldDeclaration n, Object arg)
566
566
Value field = new Value (variableDeclarator .getName (), range );
567
567
568
568
this .classFileContainer .putField (field .name , new ClassFieldLocation (getOwner (classFileContainer ),
569
- "declaration" , field .line , field .columnStart , field .columnEnd + 1 ));
569
+ "declaration" , field .line , field .columnStart , field .columnEnd + 1 ));
570
570
});
571
571
}
572
572
@@ -828,8 +828,8 @@ public void visit(MethodCallExpr n, Object arg)
828
828
829
829
Value methodCall = new Value (n .getName (), methodRange );
830
830
this .classFileContainer .putMethod (methodCall .name ,
831
- new ClassMethodLocation (resolve .getClassName (), signature , parameters , "reference" , methodCall .line ,
832
- methodCall .columnStart , methodCall .columnEnd + 1 ));
831
+ new ClassMethodLocation (resolve .getClassName (), signature , parameters , "reference" , methodCall .line ,
832
+ methodCall .columnStart , methodCall .columnEnd + 1 ));
833
833
834
834
if (method != null )
835
835
{
@@ -875,7 +875,7 @@ public void visit(MethodDeclaration n, Object arg)
875
875
876
876
Value method = new Value (n .getName (), methodRange );
877
877
this .classFileContainer .putMethod (method .name , new ClassMethodLocation (resolve .getClassName (), signature ,
878
- parameters , "declaration" , method .line , method .columnStart , method .columnEnd + 1 ));
878
+ parameters , "declaration" , method .line , method .columnStart , method .columnEnd + 1 ));
879
879
}
880
880
catch (Exception e )
881
881
{
0 commit comments