Make Code Better

This commit is contained in:
Alexander Xia committed 2018-06-25 00:34:32 +08:00
1 parent 469c8b62a9
commit 622e834d26
22 files changed
+120 -115

No files matched your search

@@ -18,6 +18,7 @@ public class HttpTextureUtil {
LOCAL_MARK="(LOCAL)",
LOCAL_LEGACY_MARK="(LOCAL_LEGACY)";
public static File defaultCacheDir;
@SuppressWarnings("ResultOfMethodCallIgnored")
public static void cleanCacheDir(){
if(defaultCacheDir!=null){
defaultCacheDir.delete();
@@ -54,7 +55,7 @@ public class HttpTextureUtil {
if(fakeUrl.startsWith(LEGACY_MARK)){
fakeUrl=fakeUrl.replace(LEGACY_MARK, "");
info.url=fakeUrl;
info.hash=DigestUtils.sha1Hex(info.url);;
info.hash=DigestUtils.sha1Hex(info.url);
info.cacheFile=HttpTextureUtil.getCacheFile(info.hash);
return info;
}