123
This commit is contained in:
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);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user