среда, 21 июля 2010 г.

Consider the following code snippet:

public class SomeClass {

 @SuppressWarnings("unused")
 private Validator validator;

 ... 
}

Variable validator really isn't use. It could be simply removed, by author decided to mark it as @SuppressWarnings("unused") - just in order to make compiler and Eclipse silent. 

Stupid!

Комментариев нет:

Отправить комментарий