Skip to content

Commit

Permalink
Remove ReflectiveOperationException from method declaration
Browse files Browse the repository at this point in the history
  • Loading branch information
laurentgo authored and lriggs committed Mar 29, 2024
1 parent 9d1277b commit f65cf26
Showing 1 changed file with 7 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,12 @@ public class ITDriverJarValidation {
"properties/flight.properties");

// This method is designed to work with Maven failsafe plugin and expects the
// JDBC driver
// jar to be present in the test classpath (instead of the individual classes)
private static JarFile getJdbcJarFile() throws ReflectiveOperationException, IOException {
// JDBC driver jar to be present in the test classpath (instead of the individual classes)
private static JarFile getJdbcJarFile() throws IOException {
// Check if an override has been set
if (JDBC_DRIVER_PATH_OVERRIDE != null) {
return new JarFile(new File(JDBC_DRIVER_PATH_OVERRIDE));
}

//
URL driverClassURL = ITDriverJarValidation.class.getClassLoader()
Expand All @@ -83,7 +86,7 @@ private static JarFile getJdbcJarFile() throws ReflectiveOperationException, IOE
public ErrorCollector collector = new ErrorCollector();

@Test
public void validateShadedJar() throws ReflectiveOperationException, IOException {
public void validateShadedJar() throws IOException {
// Validate the content of the jar to enforce all 3rd party dependencies have
// been shaded
try (JarFile jar = getJdbcJarFile()) {
Expand Down

0 comments on commit f65cf26

Please sign in to comment.