reformat code & optimize import & rearrange code

This commit is contained in:
CsHeng
2017-05-19 10:54:54 +08:00
parent 0c1b48cee2
commit 9369218821
622 changed files with 20567 additions and 18549 deletions

View File

@ -2,6 +2,7 @@ package com.gh.common.util;
import android.os.Debug;
import android.util.Log;
import com.gh.gamecenter.BuildConfig;
import java.lang.reflect.Field;
@ -25,15 +26,6 @@ public class AppDebugConfig {
}
}
public static void logMethodName(Class<?> cls) {
if (IS_DEBUG) {
try {
Log.v(getLogTag(cls), getMethodName());
} catch (Throwable e) {
}
}
}
private static String getLogTag(Object object) {
return object.getClass().getSimpleName() + "[" + object.hashCode() + "]";
}
@ -44,6 +36,15 @@ public class AppDebugConfig {
return trace.getMethodName();
}
public static void logMethodName(Class<?> cls) {
if (IS_DEBUG) {
try {
Log.v(getLogTag(cls), getMethodName());
} catch (Throwable e) {
}
}
}
public static void logParams(String tag, Object... params) {
if (IS_DEBUG) {
for (Object obj : params) {