From 3d779c7ccd845037c680fc204fb8316ed2646fa1 Mon Sep 17 00:00:00 2001 From: Diptopol Dam Date: Wed, 29 Jun 2022 00:44:07 -0400 Subject: [PATCH] Fixed missing AssertionError catch GH-21 --- .../ca/concordia/jaranalyzer/TypeInferenceV2API.java | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) 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); }