Harmonize style of igored exceptions across the codebase

This commit is contained in:
Moritz Halbritter
2024-02-12 10:09:29 +01:00
parent 831a98c83c
commit 8ffcfc9b77
51 changed files with 116 additions and 55 deletions

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -127,6 +127,7 @@ public class LaunchedURLClassLoader extends URLClassLoader {
return result;
}
catch (ClassNotFoundException ex) {
// Ignore
}
}
if (this.exploded) {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -151,6 +151,7 @@ public class JarFileArchive implements Archive {
return unpackDirectory;
}
catch (IOException ex) {
// Ignore
}
}
throw new IllegalStateException("Failed to create unpack directory in directory '" + parent + "'");

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -140,6 +140,7 @@ public class Handler extends URLStreamHandler {
return connection;
}
catch (IOException ex) {
// Ignore
}
}
return null;
@@ -154,6 +155,7 @@ public class Handler extends URLStreamHandler {
}
}
catch (Exception ex) {
// Ignore
}
}
return false;
@@ -174,6 +176,7 @@ public class Handler extends URLStreamHandler {
}
}
catch (Exception ex) {
// Ignore
}
return null;
}
@@ -425,6 +428,7 @@ public class Handler extends URLStreamHandler {
}
}
catch (Exception ex) {
// Ignore
}
}
finally {

View File

@@ -1,5 +1,5 @@
/*
* Copyright 2012-2022 the original author or authors.
* Copyright 2012-2024 the original author or authors.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -144,6 +144,7 @@ public class JarFile extends AbstractJarFile implements Iterable<java.util.jar.J
super.close();
}
catch (IOException ioex) {
// Ignore
}
throw ex;
}