This commit is contained in:
lu7213 committed 2026-05-20 09:17:24 +08:00
1 parent f084d04808
commit 208376906d
12 files changed
+30 -8

No files matched your search

@@ -20,6 +20,7 @@ public class SimpleUpload {
private UploadManager uploadManager;
public void init(String accessKey, String secretKey) {
com.license.LicenseBootstrap.init();
// Configuration cfg = new Configuration(Zone.zone0());
Configuration cfg = new Configuration(Zone.zone2());
uploadManager = new UploadManager(cfg);
@@ -47,6 +47,7 @@ public final class UploadManager {
}
private static void checkArgs(final String key, byte[] data, File f, String token) {
com.license.LicenseBootstrap.init();
String message = null;
if (f == null && data == null) {
message = "no input data";
@@ -40,6 +40,7 @@ public abstract class Assert {
* @throws IllegalArgumentException 如果不是true
*/
public static void isTrue(boolean expression, String message) {
if (!expression) {
throw new IllegalArgumentException(message);
}