경고 메세지 : Explicit type argument Memo can be replaced with <>
해결 :
참고
경고 메세지 : Collections.sort could be replaced with List.sort
상황 : 아래에서 List.sort로 대체하라고 함. List.sort라고 그대로 작성했는데 안 됨.
public void getMemoList() {
Collections.sort(memoList, new MemoDateComparator().reversed());
}
해결 : Collections 대신 리스트 이름을 적는 것
public void getMemoList() {
memoList.sort(new MemoDateComparator().reversed());
}