code style opt, reduce build time : 1m30s

This commit is contained in:
unknown
2020-11-10 16:18:36 +08:00
parent 8b59221f71
commit b2af80dce8
42 changed files with 184 additions and 399 deletions

View File

@@ -1,7 +1,6 @@
package com.mogo.utils.sqlite.proxy
import com.mogo.utils.logger.Logger
import com.mogo.utils.network.utils.GsonUtil
import java.lang.reflect.InvocationHandler
import java.lang.reflect.Method
import java.lang.reflect.Proxy
@@ -39,11 +38,10 @@ class BaseDaoProxyLog : InvocationHandler {
*/
@Throws(Throwable::class)
override fun invoke(proxy: Any, method: Method, args: Array<Any>): Any? {
var result: Any? = null
//反射方法前调用
Logger.i("SQL数据库管理", "当前执行>>${method.name}>>")
//反射执行方法 相当于调用target.sayHelllo;
result = method.invoke(target, *args)
val result: Any? = method.invoke(target, *args)
//反射方法后调用.
Logger.i("SQL数据库管理", "执行结果>>$result")
return result