본문 바로가기

웹 & 앱 꿀 TIP

[console:Error] -Xilnt:unchecked for details 에러

728x90
반응형
Note: .\CollectionsMap.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.

 

굳이 수정할 필요가 없는 에러이지만 수정한다.

 

왜냐. 거슬리고 신경쓰이기에

 

방법은 그게 4가지이다.

 

1. collections 객체의 키와 값을 정의해하함.

    정의하지 않음으로서 에러가 발생할 수 있음, 데이터 형을 제네릭에 기입

 

그래도 안되면

 

2. setting 에 Build, Execution, Deployment > Compiler > java Compiler > Additional command line parameters: 에 "-Xlint:unchecked"를 기입

 

그래도 안되면

 

3. gradle 혹은 maven에
<compilerArgument>Xlint:unchecked</compilerArgument>
기입 위치는 project > build > plugin >artigactId > 여기에 기입

 

그래도 안되면

 

4. 껏다가 켜보아라!

 

그럼 사라질 걸..?

 

728x90
반응형

'웹 & 앱 꿀 TIP' 카테고리의 다른 글

챗 GPT 요즘 대세? 쳇  (0) 2023.03.31
[Java] Collections Map + concurrent Collections  (4) 2023.02.01
[Intellij] Base32가 import 되지 않을 경우  (0) 2023.01.10
네트워크에 대하여  (0) 2023.01.08
정수표현에 대하여  (0) 2022.12.26