이 블로그 검색

2011년 4월 3일 일요일

@SuppressWarnings("serial")

Hi, If your class implements the interface java.io.Serializeable, either directly or indirectly, you should provide a field called serialVersionUID. If you do not provide this field and compile the class, you will get a warning at compile time. If you do not want this warning, simply add the line @SupressWarnings("serial") before your class definition. Make sure, you use Java 5.0 in order to use annotations. HTH, - Günthe

댓글 없음:

댓글 쓰기