From 4766d8f84b0de26f26821365a01c26660a9ce02c Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Mon, 5 Jan 2004 03:58:51 +0000 Subject: [PATCH] Removed redundant casts. Javadocs cleanup. Flagged by Eclipse. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197137 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/fo/properties/Property.java | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/java/org/apache/fop/fo/properties/Property.java b/src/java/org/apache/fop/fo/properties/Property.java index 2f3c567d9..9b6bdd54c 100644 --- a/src/java/org/apache/fop/fo/properties/Property.java +++ b/src/java/org/apache/fop/fo/properties/Property.java @@ -488,7 +488,7 @@ public /*abstract*/ class Property { // TODO: validate here return pv; case PropertyValue.LIST: - System.out.println((PropertyValueList)value); + System.out.println(value); throw new PropertyException ("PropertyValueList passed to Property.refineParsing for " + propName); @@ -557,7 +557,7 @@ public /*abstract*/ class Property { * PropertyValueList. * @param list - the containing list. * @return the contained space-separated list. - * @throws PropertyException if list contains more than + * @throws PropertyException if list contains more than * one element or if the contained element is not a list. */ protected PropertyValueList spaceSeparatedList @@ -585,7 +585,7 @@ public /*abstract*/ class Property { * @param type String type of expected enum - for * exception messages only * @return EnumValue equivalent of the argument - * @exception PropertyException + * @exception PropertyException */ protected EnumType getEnum(PropertyValue value, int property, String type) @@ -656,9 +656,9 @@ public /*abstract*/ class Property { * fallback implementation of this function for properties which do not * support a MAPPED_LENGTH type. Those which do must override this * method. - * @param enum - the int enumeration index. + * @param enum - the enumeration index. * @return a Numeric. This implementation never returns. - * @throws PropertyException. + * @throws PropertyException */ public Numeric getMappedLength(FONode node, int enum) throws PropertyException @@ -674,8 +674,8 @@ public /*abstract*/ class Property { * that set. * @param property int property index * @return PropertyValue - * @exception PropertyException - * @exception PropertyNotImplementedException + * @exception PropertyException + * @exception PropertyNotImplementedException */ public PropertyValue getInitialValue(int property) throws PropertyException @@ -799,7 +799,7 @@ public /*abstract*/ class Property { if (value.size() == 0) throw new PropertyException ("Empty list for " + propName); - Iterator elements = ((PropertyValueList)value).iterator(); + Iterator elements = (value).iterator(); scanning_elements: while (elements.hasNext()) { PropertyValue pval = (PropertyValue)(elements.next()); -- 2.39.5