public static boolean addReadResolve(Class cls){
  return cls.isAnonymous() && cls.isToplevel();
}

public static boolean addReadResolve ( Class cls ) { return cls . isAnonymous ( ) && cls . isToplevel ( ) ; }
should the given class have a readresolve ( ) method added ?
