mirror of
https://github.com/tonikelope/megabasterd.git
synced 2025-04-29 14:14:37 +02:00
8.11
Trying to keep Java 8 compatibility https://github.com/tonikelope/megabasterd/issues/600
This commit is contained in:
parent
b1bfce9be6
commit
858e1c12a9
2
pom.xml
2
pom.xml
@ -3,7 +3,7 @@
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.tonikelope</groupId>
|
||||
<artifactId>MegaBasterd</artifactId>
|
||||
<version>8.10</version>
|
||||
<version>8.11</version>
|
||||
<packaging>jar</packaging>
|
||||
<repositories>
|
||||
<repository>
|
||||
|
@ -70,7 +70,7 @@ import javax.swing.UIManager;
|
||||
*/
|
||||
public final class MainPanel {
|
||||
|
||||
public static final String VERSION = "8.10";
|
||||
public static final String VERSION = "8.11";
|
||||
public static final boolean FORCE_SMART_PROXY = false; //TRUE FOR DEBUGING SMART PROXY
|
||||
public static final int THROTTLE_SLICE_SIZE = 16 * 1024;
|
||||
public static final int DEFAULT_BYTE_BUFFER_SIZE = 16 * 1024;
|
||||
|
@ -26,7 +26,6 @@ import java.net.MalformedURLException;
|
||||
import java.net.Proxy;
|
||||
import java.net.URL;
|
||||
import java.nio.file.Files;
|
||||
import java.nio.file.Path;
|
||||
import java.nio.file.Paths;
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
@ -1065,7 +1064,7 @@ public class MegaAPI implements Serializable {
|
||||
LOG.log(Level.INFO, "MEGA FOLDER {0} USING CACHED JSON FILE TREE", new Object[]{folder_id});
|
||||
|
||||
try {
|
||||
return Files.readString(Path.of(file_path));
|
||||
return Files.readString(Paths.get(file_path));
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(MegaAPI.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
@ -1078,7 +1077,7 @@ public class MegaAPI implements Serializable {
|
||||
String file_path = System.getProperty("java.io.tmpdir") + File.separator + "megabasterd_folder_cache_" + folder_id;
|
||||
|
||||
try {
|
||||
Files.writeString(Path.of(file_path), res);
|
||||
Files.writeString(Paths.get(file_path), res);
|
||||
} catch (IOException ex) {
|
||||
Logger.getLogger(MegaAPI.class.getName()).log(Level.SEVERE, null, ex);
|
||||
}
|
||||
|
Binary file not shown.
Before Width: | Height: | Size: 207 KiB After Width: | Height: | Size: 204 KiB |
Loading…
x
Reference in New Issue
Block a user