diff --git a/src/main/java/ca/concordia/jaranalyzer/TypeInferenceV2API.java b/src/main/java/ca/concordia/jaranalyzer/TypeInferenceV2API.java index 352b7d5..b7fbc68 100644 --- a/src/main/java/ca/concordia/jaranalyzer/TypeInferenceV2API.java +++ b/src/main/java/ca/concordia/jaranalyzer/TypeInferenceV2API.java @@ -46,7 +46,7 @@ public static MethodInfo getMethodInfo(Set dependentArtifactSet, return methodInfoList.isEmpty() ? null : methodInfoList.get(0); - } catch (Exception e) { + } catch (Exception | AssertionError e) { logger.error("Exception occurred", e); } @@ -79,7 +79,7 @@ public static MethodInfo getMethodInfo(Set dependentArtifactSet, return methodInfoList.isEmpty() ? null : methodInfoList.get(0); - } catch (Exception e) { + } catch (Exception | AssertionError e) { logger.error("Exception occurred", e); } @@ -117,7 +117,7 @@ public static MethodInfo getMethodInfo(Set dependentArtifactSet, return methodInfoList.isEmpty() ? null : methodInfoList.get(0); - } catch (Exception e) { + } catch (Exception | AssertionError e) { logger.error("Exception occurred", e); } @@ -183,7 +183,7 @@ public static MethodInfo getMethodInfo(Set dependentArtifactSet, return methodInfoList.isEmpty() ? null : methodInfoList.get(0); - } catch (Exception e) { + } catch (Exception | AssertionError e) { logger.error("Exception occurred", e); } @@ -242,7 +242,7 @@ public static MethodInfo getMethodInfo(Set dependentArtifactSet, return methodInfoList.isEmpty() ? null : methodInfoList.get(0); - } catch (Exception e) { + } catch (Exception | AssertionError e) { logger.error("Exception occurred", e); }