code style opt, reduce build time : 1m30s
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user