From 33e4f01ca3f1696dfaa4bb0eb1009dfaa5527dee Mon Sep 17 00:00:00 2001 From: Peter Bernard West Date: Mon, 5 Jan 2004 02:48:25 +0000 Subject: [PATCH] Removed spurious exception in throws clause. Javadocs cleanup. Cleaned up unnecessary try/catch clause. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@197133 13f79535-47bb-0310-9956-ffa450edef68 --- .../org/apache/fop/fo/PropertyConsts.java | 45 +++++++++---------- 1 file changed, 20 insertions(+), 25 deletions(-) diff --git a/src/java/org/apache/fop/fo/PropertyConsts.java b/src/java/org/apache/fop/fo/PropertyConsts.java index cf757a1ef..912e37943 100644 --- a/src/java/org/apache/fop/fo/PropertyConsts.java +++ b/src/java/org/apache/fop/fo/PropertyConsts.java @@ -88,11 +88,7 @@ public class PropertyConsts { public static final PropertyConsts pconsts; static { - try { pconsts = new PropertyConsts(); - } catch (PropertyException e) { - throw new RuntimeException(e.getMessage()); - } } public static final PropertyConsts getPropertyConsts() { @@ -231,10 +227,10 @@ public class PropertyConsts { * Get the initial value PropertyValue for a given property. * Note that this is a raw value; if it is * an unresolved percentage that value will be returned. - * @param index - the property index. + * @param propindex - the property index. * @return a PropertyValue containing the initial property * value element for the indexed property. - * @exception PropertyException + * @exception PropertyException */ public PropertyValue getInitialValue(int propindex) throws PropertyException @@ -254,7 +250,7 @@ public class PropertyConsts { * @param value the PropertyValue being refined. * @return PropertyValue constructed by the property's * refineParsing method - * @exception PropertyException + * @exception PropertyException */ public PropertyValue refineParsing (int propindex, FONode foNode, PropertyValue value) @@ -268,13 +264,12 @@ public class PropertyConsts { * @param propindex int index of the property * @param foNode the node whose properties are being constructed. * @param value the PropertyValue being refined. - * @param nested - boolean indicating whether this method is + * @param isNested indicates whether this method is * called normally (false), or as part of another refineParsing - * method. - * @see #refineParsing(FOTree,PropertyValue) + * method * @return PropertyValue constructed by the property's * refineParsing method - * @exception PropertyException + * @exception PropertyException */ public PropertyValue refineParsing (int propindex, FONode foNode, PropertyValue value, boolean isNested) @@ -290,7 +285,7 @@ public class PropertyConsts { * @param propindex int index of the FO property * @param enum - the integer equivalent of the enumeration keyword. * @return the Numeric result. - * @throws PropertyException. + * @throws PropertyException */ public Numeric getMappedNumeric(FONode foNode, int propindex, int enum) throws PropertyException @@ -305,10 +300,10 @@ public class PropertyConsts { } /** - * @param propindex int index of the FO property + * @param property name of the FO property * @return int type of inheritance for this property * (See constants defined in Properties.) - * @throws PropertyException. + * @throws PropertyException */ public int inheritance(String property) throws PropertyException { return inheritance(PropNames.getPropertyIndex(property)); @@ -318,7 +313,7 @@ public class PropertyConsts { * @param propindex int index of the FO property * @return int type of inheritance for this property * (See constants defined in Property.) - * @throws PropertyException. + * @throws PropertyException */ public int inheritance(int propindex) throws PropertyException { setupProperty(propindex); @@ -328,7 +323,7 @@ public class PropertyConsts { /** * @param propindex int index of the FO property * @return boolean is property inherited? - * @throws PropertyException. + * @throws PropertyException */ public boolean isInherited(int propindex) throws PropertyException { Property property = setupProperty(propindex); @@ -338,7 +333,7 @@ public class PropertyConsts { /** * @param property String name of the FO property * @return boolean is property inherited? - * @throws PropertyException. + * @throws PropertyException */ public boolean isInherited(String property) throws PropertyException { return isInherited(PropNames.getPropertyIndex(property)); @@ -347,7 +342,7 @@ public class PropertyConsts { /** * @param propindex int index of the FO property * @return boolean is property a shorthand? - * @throws PropertyException. + * @throws PropertyException */ public boolean isShorthand(int propindex) throws PropertyException { Property property = setupProperty(propindex); @@ -357,7 +352,7 @@ public class PropertyConsts { /** * @param property String name of the FO property * @return boolean is property a shorthand? - * @throws PropertyException. + * @throws PropertyException */ public boolean isShorthand(String property) throws PropertyException { return isShorthand(PropNames.getPropertyIndex(property)); @@ -366,7 +361,7 @@ public class PropertyConsts { /** * @param propertyIndex int index of the FO property * @return boolean is property a compound? - * @throws PropertyException. + * @throws PropertyException */ public boolean isCompound(int propertyIndex) throws PropertyException { Property property = setupProperty(propertyIndex); @@ -376,7 +371,7 @@ public class PropertyConsts { /** * @param property String name of the FO property * @return boolean is property a compound? - * @throws PropertyException. + * @throws PropertyException */ public boolean isCompound(String property) throws PropertyException { return isCompound(PropNames.getPropertyIndex(property)); @@ -385,7 +380,7 @@ public class PropertyConsts { /** * @param propertyIndex int index of the FO property * @return int dataTypes value. - * @throws PropertyException. + * @throws PropertyException */ public int getDataTypes(int propertyIndex) throws PropertyException { Property property = setupProperty(propertyIndex); @@ -395,7 +390,7 @@ public class PropertyConsts { /** * @param property String name of the FO property * @return int dataTypes value. - * @throws PropertyException. + * @throws PropertyException */ public int getDataTypes(String property) throws PropertyException { return getDataTypes(PropNames.getPropertyIndex(property)); @@ -449,7 +444,7 @@ public class PropertyConsts { * values from the Property. * @param propindex - the int index. * @return - the Property corresponding to the index. - * @throws PropertyException. + * @throws PropertyException */ public Property setupProperty(int propindex) throws PropertyException @@ -517,6 +512,6 @@ public class PropertyConsts { } - private PropertyConsts () throws PropertyException {} + private PropertyConsts () {} } -- 2.39.5