[Japi-cvs] SF.net SVN: japi:[913] libs/lang/trunk/src/prj/net/sf/japi/lang/ PropertyComparator.java
Status: Beta
Brought to you by:
christianhujer
From: <chr...@us...> - 2009-02-16 03:16:32
|
Revision: 913 http://japi.svn.sourceforge.net/japi/?rev=913&view=rev Author: christianhujer Date: 2009-02-16 03:16:30 +0000 (Mon, 16 Feb 2009) Log Message: ----------- Added documentation about serialization. Modified Paths: -------------- libs/lang/trunk/src/prj/net/sf/japi/lang/PropertyComparator.java Modified: libs/lang/trunk/src/prj/net/sf/japi/lang/PropertyComparator.java =================================================================== --- libs/lang/trunk/src/prj/net/sf/japi/lang/PropertyComparator.java 2009-02-15 23:08:49 UTC (rev 912) +++ libs/lang/trunk/src/prj/net/sf/japi/lang/PropertyComparator.java 2009-02-16 03:16:30 UTC (rev 913) @@ -31,7 +31,8 @@ * @param <T> Property type to compare. * @param <C> Class of which to compare a property. * @author <a href="mailto:ch...@ri...">Christian Hujer</a> - * @todo think whether net.sf.japi.lang really is the correct package or this should rather go to something like net.sf.japi.beans or net.sf.japi.util. + * @todo 2009-02-16:christianhujer:Think whether net.sf.japi.lang really is the correct package or this should rather go to something like net.sf.japi.beans or net.sf.japi.util. + * @todo 2009-02-16:christianhujer:This class is not yet implemented Serializable. */ public class PropertyComparator<T, C> implements Comparator<C>, Serializable { @@ -46,6 +47,8 @@ /** The comparator to compare the property value. * @serial include */ + // If this field cannot be serialized, the default error mechanisms are sufficient and shall apply. + @SuppressWarnings({"NonSerializableFieldInSerializableClass"}) @Nullable private final Comparator<T> delegate; /** The name of the property to get. @@ -56,7 +59,7 @@ /** The getter to read the property. * @serial include */ - @Nullable private final Method getter; + @Nullable private final Method getter; // TODO:2009-02-16:christianhujer:Handle this field. /** Create a PropertyComparator. * @param targetClass The target class of which properties should be compared, maybe <code>null</code> in which case the target class will be evaluated dynamically. This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |