1
mirror of https://github.com/CarmJos/GithubReleases4J.git synced 2026-06-04 21:18:16 +08:00

[v1.2.1] [U] 修改接口使用方式,使其更加易懂。

This commit is contained in:
2022-01-22 13:47:48 +08:00
parent 303dd703d6
commit 91d3dab986
5 changed files with 38 additions and 50 deletions
+2 -1
View File
@@ -6,6 +6,7 @@ import org.junit.Test;
import java.io.File;
import java.io.IOException;
import java.nio.file.StandardCopyOption;
import java.text.SimpleDateFormat;
import java.util.List;
@@ -48,7 +49,7 @@ public class GithubReleasesTest {
if (!DOWNLOAD) return;
if (assets == null) return;
try {
File file = assets.download(null);
File file = assets.download();
System.out.println("- at " + file.getAbsolutePath());
} catch (IOException e) {
e.printStackTrace();