이클립스에서 경고제거를 해보자
이클립스에서 경고제거를 해보자
project properties -> Java Compiler -> Errors/Warnings
project properties -> Java Compiler -> Errors/Warnings -> Generics types(경고)
Usage of a raw type(경고) : ArrayList 사용시 element type를 지정하지 않고 사용할 경우 발생
Dead Code(경고) : 조건문 혹은 변수가 절대로 사용하지 않을 경우 발생
not used(경고) : 사용되지 않을 경우
unchecked generic type operation(경고) : 타입을 선언하지 않고 사용할 경우
Non-static access to static member(경고) ; static 맴버변수를 스태틱한 방법을 사용하지 않고 사용할 경우 예를 들어
public class EgovUserDetailsHelper {
static EgovUserDetailsService egovUserDetailsService;
라고 하고 사용할때
this.egovUserDetailsService
이런식으로 사용할 떄 발생
EgovUserDetailsHelper.egovUserDetailsService
이런식으로 사용하면 경고가 없어짐
Serializable class without serialVersionUID (경고): Serializable 클래스를 UID없이 사용할 경우
unused private member(경고) 사용되지 않는 프라이빗 맴버