Skip to content

Commit

Permalink
ALS-4751: Clean up excepetion handling, per checkmarx
Browse files Browse the repository at this point in the history
  • Loading branch information
ramari16 committed Jul 12, 2023
1 parent 7b7165f commit befa929
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -124,7 +124,7 @@ private static void processRecord(final PhenoCube[] currentConcept, List<String>
store.allIds.add(patientId);
}
} catch (ExecutionException e) {
e.printStackTrace();
log.error("Error processing record", e);
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,6 @@ public void dumpStats() {
System.out.println("Total Number of Observations : " + totalNumberOfObservations);

} catch (IOException | ClassNotFoundException e) {
e.printStackTrace();
throw new RuntimeException("Could not load metastore");
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,7 +66,7 @@ public void onRemoval(RemovalNotification<String, PhenoCube> cubeRemoval) {
columnMeta.setAllObservationsLength(allObservationsTemp.getFilePointer());
metadataMap.put(columnMeta.getName(), columnMeta);
} catch (IOException e1) {
e1.printStackTrace();
throw new UncheckedIOException(e1);
}
}
}
Expand Down

0 comments on commit befa929

Please sign in to comment.