Skip to content

Commit

Permalink
change code style
Browse files Browse the repository at this point in the history
  • Loading branch information
YangSen-qn committed Jul 21, 2023
1 parent b234891 commit 8fcf886
Show file tree
Hide file tree
Showing 3 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/test/java/test/com/qiniu/storage/ApiUploadV1Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ public void testUpload(boolean isUploadBytes) {
try {
Field hostsFiled = Region.class.getDeclaredField("srcUpHosts");
hostsFiled.setAccessible(true);
hosts = new ArrayList<String>((List<String>)hostsFiled.get(region));
hosts = new ArrayList<>((List<String>)hostsFiled.get(region));
} catch (Exception e) {
e.printStackTrace();
fail(e);
Expand Down
2 changes: 1 addition & 1 deletion src/test/java/test/com/qiniu/storage/ApiUploadV2Test.java
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,7 @@ private void testUpload(boolean isUploadBytes, boolean isSetContentLength) {
try {
Field hostsFiled = Region.class.getDeclaredField("srcUpHosts");
hostsFiled.setAccessible(true);
hosts = new ArrayList<String>((List<String>)hostsFiled.get(region));
hosts = new ArrayList<>((List<String>)hostsFiled.get(region));
} catch (Exception e) {
e.printStackTrace();
fail(e);
Expand Down
1 change: 0 additions & 1 deletion src/test/java/test/com/qiniu/storage/BucketTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@
import com.qiniu.storage.Configuration;
import com.qiniu.storage.model.*;
import com.qiniu.util.Json;
import com.qiniu.util.StringMap;
import com.qiniu.util.StringUtils;
import okhttp3.Call;
import okhttp3.OkHttpClient;
Expand Down

0 comments on commit 8fcf886

Please sign in to comment.