Java warning with implementing Comparable
Comparable should be implemented with type safety, here it is <CharProfile>
.
public class CharProfile implements Comparable<CharProfile>{
@Override
public int compareTo(CharProfile cp) {
...
}
}