public boolean isFinal (Class type) {
		if (type == null) throw new IllegalArgumentException("type cannot be null.");
		if (type.isArray()) return Modifier.isFinal(Util.getElementClass(type).getModifiers());
		return Modifier.isFinal(type.getModifiers());
	}
public boolean isFinal ( Class type ) { if ( type == null ) throw new IllegalArgumentException ( "type cannot be null." ) ; if ( type . isArray ( ) ) return Modifier . isFinal ( Util . getElementClass ( type ) . getModifiers ( ) ) ; return Modifier . isFinal ( type . getModifiers ( ) ) ; }
Returns true if the specified type is final. Final types can be serialized more efficiently because they are
non-polymorphic.
<p>
.This can be overridden to force non-final classes to be treated as final. Eg, if an application uses ArrayList extensively
but never uses an ArrayList subclass, treating ArrayList as final could allow FieldSerializer to save 1-2 bytes per
ArrayList field.