不知道你們有沒有發現,在咱們用 IDEA 敲擊代碼的時候,常常會發現以下所示的現象:翻譯
報出的錯誤:Class 'GeoUtil' is never used
翻譯以後得出的是:從未使用過類'GeoUtil'3d
若是你感受看起來不爽的話,那麼就只須要這樣操做就能夠了:code
File -> Settings... –> 搜索框輸入 「inspection」回車 –> 右邊搜索框輸入 「Declaration redundancy」,找到 「Unused declaration」,取消勾選便可,以下圖:blog
後點擊 Apply
以後再點擊 OK
,這個時候就能出現以下這種情況:io