pbwest 2004/01/04 19:58:51
Modified: src/java/org/apache/fop/fo/properties Tag:
FOP_0-20-0_Alt-Design Property.java
Log:
Removed redundant casts.
Javadocs cleanup.
Flagged by Eclipse.
Revision Changes Path
No revision
No revision
1.1.2.4 +11 -11
xml-fop/src/java/org/apache/fop/fo/properties/Attic/Property.java
Index: Property.java
===================================================================
RCS file:
/home/cvs/xml-fop/src/java/org/apache/fop/fo/properties/Attic/Property.java,v
retrieving revision 1.1.2.3
retrieving revision 1.1.2.4
diff -u -r1.1.2.3 -r1.1.2.4
--- Property.java 3 Jan 2004 11:14:46 -0000 1.1.2.3
+++ Property.java 5 Jan 2004 03:58:51 -0000 1.1.2.4
@@ -488,7 +488,7 @@
// 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 @@
* <tt>PropertyValueList</tt>.
* @param list - the containing list.
* @return the contained space-separated list.
- * @throws <tt>PropertyException</tt> if <i>list</i> contains more than
+ * @throws PropertyException if <i>list</i> contains more than
* one element or if the contained element is not a list.
*/
protected PropertyValueList spaceSeparatedList
@@ -585,7 +585,7 @@
* @param type <tt>String</tt> type of expected enum - for
* exception messages only
* @return <tt>EnumValue</tt> equivalent of the argument
- * @exception <tt>PropertyException</tt>
+ * @exception PropertyException
*/
protected EnumType getEnum(PropertyValue value,
int property, String type)
@@ -656,9 +656,9 @@
* 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 <tt>int</tt> enumeration index.
+ * @param enum - the enumeration index.
* @return a <tt>Numeric</tt>. This implementation never returns.
- * @throws <tt>PropertyException</tt>.
+ * @throws PropertyException
*/
public Numeric getMappedLength(FONode node, int enum)
throws PropertyException
@@ -674,8 +674,8 @@
* that set.
* @param property <tt>int</tt> property index
* @return <tt>PropertyValue</tt>
- * @exception <tt>PropertyException</tt>
- * @exception <tt>PropertyNotImplementedException</tt>
+ * @exception PropertyException
+ * @exception PropertyNotImplementedException
*/
public PropertyValue getInitialValue(int property)
throws PropertyException
@@ -799,7 +799,7 @@
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());
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]