Reputation: 917
Almost all of the Wicket components need a line like this
private static final long serialVersionUID = 1L;
And sometimes there are too many those distracting lines... In which cases we can safely ignore serializable warnings? For example:
@SuppressWarnings("serial")
public class CheckOut extends WebPage {
//private static final long serialVersionUID = 1L;
public CheckOut() {
...
@Override
protected void populateItem(ListItem<Cheese> item) {
//private static final long serialVersionUID = 1L;
...
Upvotes: 0
Views: 371
Reputation: 17513
These are needed only if you want to support persistent sessions [1]. You can ignore them otherwise.
Upvotes: 3