Skip to content

Commit 8ac5a23

Browse files
committed
snaploader-examples: applied API changes
1 parent 4bc6e25 commit 8ac5a23

File tree

7 files changed

+9
-9
lines changed

7 files changed

+9
-9
lines changed

snaploader-examples/src/main/java/electrostatic4j/snaploader/examples/TestBasicFeatures.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -66,7 +66,7 @@ public final class TestBasicFeatures {
6666
DefaultDynamicLibraries.MAC_X86_64,
6767
};
6868

69-
public static void main(String[] args) throws IOException {
69+
public static void main(String[] args) throws Exception {
7070
if (loader == null) {
7171
loader = new NativeBinaryLoader(libraryInfo);
7272
}

snaploader-examples/src/main/java/electrostatic4j/snaploader/examples/TestBasicFeatures2.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
*/
5454
public final class TestBasicFeatures2 {
5555

56-
public static void main(String[] args) throws IOException {
56+
public static void main(String[] args) throws Exception {
5757

5858
final Path compressionPath = Paths.get(PropertiesProvider.USER_DIR.getSystemProperty(), "libs", TestBasicFeatures.getJarFile());
5959
final Path extractionPath = Files.createDirectories(Paths.get(PropertiesProvider.USER_DIR.getSystemProperty(), "libs",

snaploader-examples/src/main/java/electrostatic4j/snaploader/examples/TestFilesystemException.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
import java.nio.file.Paths;
1616

1717
public final class TestFilesystemException {
18-
public static void main(String[] args) throws IOException {
18+
public static void main(String[] args) throws Exception {
1919
final Path compressionPath = Paths.get(PropertiesProvider.USER_DIR.getSystemProperty(), "libs", TestBasicFeatures.getJarFile());
2020
final Path extractionPath = Files.createDirectories(Paths.get(PropertiesProvider.USER_DIR.getSystemProperty(), "libs",
2121
NativeVariant.OS_NAME.getProperty(), NativeVariant.OS_ARCH.getProperty()));

snaploader-examples/src/main/java/electrostatic4j/snaploader/examples/TestFilesystemMemoryLeak.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -49,7 +49,7 @@
4949
* @author pavl_g
5050
*/
5151
public class TestFilesystemMemoryLeak {
52-
public static void main(String[] args) throws IOException {
52+
public static void main(String[] args) throws Exception {
5353
/* Locates the image inside the Zip Compression */
5454
SnapLoaderLogger.setLoggingEnabled(true);
5555
final FileLocator fileLocator = new FileLocator(getZipAbsolutePath(), getFilePath(), ZipCompressionType.ZIP);

snaploader-examples/src/main/java/electrostatic4j/snaploader/examples/TestMultiThreading.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void run() {
5555
try {
5656
Thread.sleep(200);
5757
TestBasicFeatures.loader.loadLibrary(LoadingCriterion.CLEAN_EXTRACTION);
58-
} catch (UnSupportedSystemError | IOException | InterruptedException e) {
58+
} catch (Exception e) {
5959
e.printStackTrace();
6060
}
6161
}
@@ -69,7 +69,7 @@ public void run() {
6969
try {
7070
Thread.sleep(200);
7171
TestBasicFeatures.loader.loadLibrary(LoadingCriterion.CLEAN_EXTRACTION);
72-
} catch (UnSupportedSystemError | IOException | InterruptedException e) {
72+
} catch (Exception e) {
7373
e.printStackTrace();
7474
}
7575
}
@@ -83,7 +83,7 @@ public void run() {
8383
try {
8484
Thread.sleep(200);
8585
TestBasicFeatures.loader.loadLibrary(LoadingCriterion.CLEAN_EXTRACTION);
86-
} catch (UnSupportedSystemError | IOException | InterruptedException e) {
86+
} catch (Exception e) {
8787
e.printStackTrace();
8888
}
8989
}

snaploader-examples/src/main/java/electrostatic4j/snaploader/examples/TestMultipleLoads.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@
4242
*/
4343
public final class TestMultipleLoads {
4444

45-
public static void main(String[] args) throws InterruptedException, IOException {
45+
public static void main(String[] args) throws Exception {
4646
TestBasicFeatures.main(args);
4747
new File(TestBasicFeatures.getNativeDynamicLibraryPath()).delete();
4848
Thread.sleep(5000);

snaploader-examples/src/main/java/electrostatic4j/snaploader/examples/TestZipExtractor.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@
4848
*/
4949
public class TestZipExtractor {
5050

51-
public static void main(String[] args) throws IOException {
51+
public static void main(String[] args) throws Exception {
5252
/* Locates the image inside the Zip Compression */
5353
final FileLocator fileLocator = new FileLocator(getZipAbsolutePath(), getFilePath(), ZipCompressionType.ZIP);
5454
/* Extracts the image filesystem from the Zip Compression */

0 commit comments

Comments
 (0)