private synchronized void writeObject(ObjectOutputStream out) throws IOException { if (properties != null && !properties.hasOwnProperties()) { properties = null; } out.defaultWriteObject(); } }
/** * Checks whether there are any properties. * * @return whether there are any properties */ public boolean hasProperties() { return hasOwnProperties() || base != null && base.hasProperties(); }