Skip to content

Commit

Permalink
处理线程安全
Browse files Browse the repository at this point in the history
  • Loading branch information
kymjs committed Nov 18, 2024
1 parent a83499d commit d08f836
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ hs_err_pid*
*.ipr
*.iws
.idea/

.vscode/

###Eclipse###

Expand Down
1 change: 1 addition & 0 deletions router/src/main/java/com/therouter/inject/RouterInject.kt
Original file line number Diff line number Diff line change
Expand Up @@ -67,6 +67,7 @@ class RouterInject {
return temp
}

@Synchronized
private fun <T> createDI(tClass: Class<T>, vararg params: Any?): T? {
var t: T? = null
//查找自定义拦截器
Expand Down

0 comments on commit d08f836

Please sign in to comment.