When you implement Serializable for your class, IDE shows a warning that The serializable class YOURCLASS does not declare a static final serialVersionUID field of type long.
How can I define an interface that forces the IDE to show this warning for my field?
public class MyClass implements Serializable
{
// this class has warning
}
public class MyClass implements MyInterface
{
// I want to have warning for this class
}
public interface MyInterface{
public static final long myField;
}