File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed
src/main/java/com/example/adblock Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -60,18 +60,18 @@ private static String buildLibraryPath() throws RustException {
60
60
* This method generate extension by current system platform.
61
61
*
62
62
* @return String A native library extension by system platform.
63
- * @throws RustException throws if failed to detect system platform.
64
63
*/
65
- private static String buildLibraryExtension () throws RustException {
64
+ private static String buildLibraryExtension () {
66
65
String osName = System .getProperty ("os.name" ).toLowerCase ();
67
66
if (osName .contains ("windows" )) {
68
67
return ".dll" ;
69
68
} else if (osName .contains ("mac os x" )) {
70
69
return ".dylib" ;
71
- } else if (osName .contains ("linux" )) {
70
+ } if (osName .contains ("linux" )) {
72
71
return ".so" ;
73
72
} else {
74
- throw new RustException ("Unsupported OS: " + osName );
73
+ System .err .println ("Unsupported OS: " + osName );
74
+ return ".so" ;
75
75
}
76
76
}
77
77
You can’t perform that action at this time.
0 commit comments