You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-commits@xmlgraphics.apache.org by pi...@apache.org on 2005/09/08 00:21:03 UTC
svn commit: r279439 - in /xmlgraphics/fop/trunk/src/java/org/apache/fop:
apps/ area/ area/inline/ datatypes/
Author: pietsch
Date: Wed Sep 7 15:20:36 2005
New Revision: 279439
URL: http://svn.apache.org/viewcvs?rev=279439&view=rev
Log:
Squashed CheckStyle warnings, mostly JavaDoc.
Modified:
xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOPException.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOUserAgent.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeModel.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CTM.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CachedRenderPagesModel.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/Footnote.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LineArea.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LinkResolver.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/MainReference.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/AbstractTextArea.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/InlineArea.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ColorType.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/Length.java
xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/LengthBase.java
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOPException.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOPException.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOPException.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOPException.java Wed Sep 7 15:20:36 2005
@@ -33,14 +33,20 @@
private int column;
/**
- * create a new FOP Exception
- *
- * @param message descriptive message
+ * Constructs a new FOP exception with the specified detail message.
+ * @param message the detail message.
*/
public FOPException(String message) {
super(message);
}
+ /**
+ * Constructs a new FOP exception with the specified detail message and location.
+ * @param message the detail message
+ * @param systemId the system id of the FO document which is associated with the exception. May be null.
+ * @param line line number in the FO document which is associated with the exception.
+ * @param column clolumn number in the line which is associated with the exception.
+ */
public FOPException(String message, String systemId, int line, int column) {
super(message);
this.systemId = systemId;
@@ -48,6 +54,11 @@
this.column = column;
}
+ /**
+ * Constructs a new FOP exception with the specified detail message and location.
+ * @param message the detail message.
+ * @param locator the locator holding the location.
+ */
public FOPException(String message, Locator locator) {
super(message);
setLocator(locator);
@@ -55,22 +66,26 @@
/**
- *
- * @param e Throwable object
+ * Constructs a new FOP exception with the specified cause.
+ * @param cause the cause.
*/
- public FOPException(Exception e) {
- super(e);
+ public FOPException(Exception cause) {
+ super(cause);
}
/**
- *
- * @param message descriptive message
- * @param e Throwable object
+ * Constructs a new exception with the specified detail message and cause.
+ * @param message the detail message
+ * @param cause the cause
*/
- public FOPException(String message, Throwable e) {
- super(message);
+ public FOPException(String message, Exception cause) {
+ super(message, cause);
}
+ /**
+ * Set a location associated with the exception.
+ * @param location the locator holding the location.
+ */
public void setLocator(Locator locator) {
if (locator != null) {
this.systemId = locator.getSystemId();
@@ -79,19 +94,40 @@
}
}
+ /**
+ * Set a location associated with the exception.
+ * @param systemId the system id of the FO document which is associated with the exception. May be null.
+ * @param line line number in the FO document which is associated with the exception.
+ * @param column clolumn number in the line which is associated with the exception.
+ */
public void setLocation(String systemId, int line, int column) {
this.systemId = systemId;
this.line = line;
this.column = column;
}
+ /**
+ * Indicate whether a location was set.
+ */
public boolean isLocationSet() {
+ // TODO: this is actually a dangerous assumption: A line
+ // number of 0 or -1 might be used to indicate an unknown line
+ // number, while the system ID might still be of use.
return line > 0;
}
+ /**
+ * Returns the detail message string of this FOP exception.
+ * If a location was set, the message is prepended with it in the
+ * form
+ * <pre>
+ * SystemId:LL:CC: &the message&
+ * </pre>
+ * (the format used by most GNU tools)
+ */
public String getMessage() {
if (isLocationSet()) {
- return systemId + ":" + line + "," + column + " " + super.getMessage();
+ return systemId + ":" + line + ":" + column + ": " + super.getMessage();
} else {
return super.getMessage();
}
@@ -108,8 +144,8 @@
result = ((SAXException)result).getException();
}
if (result instanceof java.lang.reflect.InvocationTargetException) {
- result =
- ((java.lang.reflect.InvocationTargetException)result).getTargetException();
+ result
+ = ((java.lang.reflect.InvocationTargetException)result).getTargetException();
}
if (result != getException()) {
return result;
@@ -118,7 +154,7 @@
}
/**
- * Write stack trace to stderr
+ * Prints this FOP exception and its backtrace to the standard error stream.
*/
public void printStackTrace() {
synchronized (System.err) {
@@ -135,8 +171,8 @@
}
/**
- * write stack trace on a PrintStream
- * @param stream PrintStream on which to write stack trace
+ * Prints this FOP exception and its backtrace to the specified print stream.
+ * @param stream PrintStream to use for output
*/
public void printStackTrace(java.io.PrintStream stream) {
synchronized (stream) {
@@ -153,8 +189,8 @@
}
/**
- * Write stack trace on a PrintWriter
- * @param writer PrintWriter on which to write stack trace
+ * Prints this FOP exception and its backtrace to the specified print writer.
+ * @param writer PrintWriter to use for output
*/
public void printStackTrace(java.io.PrintWriter writer) {
synchronized (writer) {
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOUserAgent.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOUserAgent.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOUserAgent.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/apps/FOUserAgent.java Wed Sep 7 15:20:36 2005
@@ -421,7 +421,6 @@
*/
public Source resolveURI(String uri) {
Source source = null;
- URIResolver uriResolver = getURIResolver();
if (uriResolver != null) {
try {
source = uriResolver.resolve(uri, getBaseURL());
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeModel.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeModel.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeModel.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/AreaTreeModel.java Wed Sep 7 15:20:36 2005
@@ -60,7 +60,7 @@
}
/**
- * Add a page to this moel.
+ * Add a page to this model.
* @param page the page to add to the model.
*/
public void addPage(PageViewport page) {
@@ -75,6 +75,7 @@
/**
* Signal the end of the document for any processing.
+ * @throws SAXException if a problem was encountered.
*/
public void endDocument() throws SAXException {};
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CTM.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CTM.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CTM.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CTM.java Wed Sep 7 15:20:36 2005
@@ -115,17 +115,15 @@
switch (wm) {
case Constants.EN_LR_TB:
return new CTM(CTM_LRTB);
- case Constants.EN_RL_TB: {
- wmctm = new CTM(CTM_RLTB);
- wmctm.e = ipd;
- return wmctm;
- }
+ case Constants.EN_RL_TB:
+ wmctm = new CTM(CTM_RLTB);
+ wmctm.e = ipd;
+ return wmctm;
//return CTM_RLTB.translate(ipd, 0);
- case Constants.EN_TB_RL: { // CJK
- wmctm = new CTM(CTM_TBRL);
- wmctm.e = bpd;
- return wmctm;
- }
+ case Constants.EN_TB_RL: // CJK
+ wmctm = new CTM(CTM_TBRL);
+ wmctm.e = bpd;
+ return wmctm;
//return CTM_TBRL.translate(0, ipd);
default:
return null;
@@ -248,6 +246,8 @@
/**
* Construct a coordinate transformation matrix (CTM).
+ * @param absRefOrient absolute reference orientation
+ * @param writingmode the writing mode
* @param absVPrect absolute viewpoint rectangle
* @param reldims relative dimensions
* @return CTM the coordinate transformation matrix (CTM)
@@ -294,6 +294,8 @@
case -90:
ctm = ctm.translate(height, 0); // height = absVPrect.width
break;
+ default:
+ throw new RuntimeException();
}
ctm = ctm.rotate(absRefOrient);
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CachedRenderPagesModel.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CachedRenderPagesModel.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CachedRenderPagesModel.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/CachedRenderPagesModel.java Wed Sep 7 15:20:36 2005
@@ -83,8 +83,8 @@
if (!p.isResolved()) {
String[] idrefs = p.getIDRefs();
for (int count = 0; count < idrefs.length; count++) {
- log.warn("Page " + p.getPageNumberString() +
- ": Unresolved id reference \"" + idrefs[count]
+ log.warn("Page " + p.getPageNumberString()
+ + ": Unresolved id reference \"" + idrefs[count]
+ "\" found.");
}
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/Footnote.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/Footnote.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/Footnote.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/Footnote.java Wed Sep 7 15:20:36 2005
@@ -56,14 +56,29 @@
return separator;
}
+ /**
+ * Set the relative position of the footnote inside the body region.
+ *
+ * @param top the relative position.
+ */
public void setTop(int top) {
this.top = top;
}
+ /**
+ * Get the relative position of the footnote inside the body region.
+ *
+ * @return the relative position.
+ */
public int getTop() {
return top;
}
+ /**
+ * Add a block area as child to the footnote area
+ *
+ * @param child the block area.
+ */
public void addBlock(Block child) {
if (children == null) {
children = new ArrayList();
@@ -72,10 +87,20 @@
children.add(child);
}
+ /**
+ * Get all child areas.
+ *
+ * @return the list of child areas. Maybe null.
+ */
public List getChildAreas() {
return children;
}
+ /**
+ * Check whether there are child areas.
+ *
+ * @return the result.
+ */
public boolean isEmpty() {
return children == null || children.size() == 0;
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LineArea.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LineArea.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LineArea.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LineArea.java Wed Sep 7 15:20:36 2005
@@ -192,6 +192,8 @@
finalize();
}
break;
+ default:
+ throw new RuntimeException();
}
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LinkResolver.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LinkResolver.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LinkResolver.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/LinkResolver.java Wed Sep 7 15:20:36 2005
@@ -54,6 +54,11 @@
return resolved;
}
+ /**
+ * Get the references for this link.
+ *
+ * @return the String array of references.
+ */
public String[] getIDRefs() {
return new String[] {idRef};
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/MainReference.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/MainReference.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/MainReference.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/MainReference.java Wed Sep 7 15:20:36 2005
@@ -36,6 +36,8 @@
/**
* Constructor
+ *
+ * @param parent the body region this reference area is placed in.
*/
public MainReference(BodyRegion parent) {
this.parent = parent;
@@ -46,11 +48,12 @@
* Add a span area to this area.
*
* @param spanAll whether to make a single-column span
+ * @return the created span area.
*/
public Span createSpan(boolean spanAll) {
RegionViewport rv = parent.getRegionViewport();
- int ipdWidth = (int) parent.getIPD() -
- rv.getBorderAndPaddingWidthStart() - rv.getBorderAndPaddingWidthEnd();
+ int ipdWidth = (int) parent.getIPD()
+ - rv.getBorderAndPaddingWidthStart() - rv.getBorderAndPaddingWidthEnd();
Span newSpan = new Span(((spanAll) ? 1 : getColumnCount()),
getColumnGap(), ipdWidth);
@@ -72,7 +75,7 @@
* @return the active span.
*/
public Span getCurrentSpan() {
- return (Span) spanAreas.get(spanAreas.size()-1);
+ return (Span) spanAreas.get(spanAreas.size() - 1);
}
/**
@@ -85,7 +88,7 @@
if (isEmpty) {
int areaCount = 0;
if (spanAreas != null) {
- for (Iterator spaniter = spanAreas.iterator(); spaniter.hasNext(); ) {
+ for (Iterator spaniter = spanAreas.iterator(); spaniter.hasNext();) {
Span spanArea = (Span) spaniter.next();
for (int i = 0; i < spanArea.getColumnCount(); i++) {
NormalFlow flow = spanArea.getNormalFlow(i);
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/PageViewport.java Wed Sep 7 15:20:36 2005
@@ -94,6 +94,7 @@
/**
* Create a page viewport
* @param spm SimplePageMaster indicating the page and region dimensions
+ * @param pageStr the page number as string.
* @param p Page Reference Area
* @param bounds Page Viewport dimensions
*/
@@ -183,8 +184,8 @@
* @return String array of idref's that still have not been resolved
*/
public String[] getIDRefs() {
- return (unresolvedIDRefs == null) ? null :
- (String[]) unresolvedIDRefs.keySet().toArray(new String[] {});
+ return (unresolvedIDRefs == null) ? null
+ : (String[]) unresolvedIDRefs.keySet().toArray(new String[] {});
}
/**
@@ -288,9 +289,8 @@
}
}
}
- }
- // at the end of the area, register is-last and any areas
- else {
+ } else {
+ // at the end of the area, register is-last and any areas
if (islast) {
if (markerLastEnd == null) {
markerLastEnd = new HashMap();
@@ -357,6 +357,8 @@
posName = "LastAny after " + posName;
}
break;
+ default:
+ throw new RuntimeException();
}
if (log.isTraceEnabled()) {
log.trace("page " + pageNumberString + ": " + "Retrieving marker " + name
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/RenderPagesModel.java Wed Sep 7 15:20:36 2005
@@ -152,8 +152,8 @@
if (!p.isResolved()) {
String[] idrefs = p.getIDRefs();
for (int count = 0; count < idrefs.length; count++) {
- log.warn("Page " + p.getPageNumberString() +
- ": Unresolved id reference \"" + idrefs[count]
+ log.warn("Page " + p.getPageNumberString()
+ + ": Unresolved id reference \"" + idrefs[count]
+ "\" found.");
}
}
@@ -200,6 +200,8 @@
case OffDocumentItem.END_OF_DOC:
endDocODI.add(oDI);
break;
+ default:
+ throw new RuntimeException();
}
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/AbstractTextArea.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/AbstractTextArea.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/AbstractTextArea.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/AbstractTextArea.java Wed Sep 7 15:20:36 2005
@@ -35,6 +35,13 @@
// (this is equivalent to the property word-spacing.optimum)
protected int spaceDifference = 0;
+ /**
+ * Constructor
+ *
+ * @param stretch the available space for stretching
+ * @param shrink the available space for shrinking
+ * @param adj space adjustment type
+ */
protected TextAdjustingInfo(int stretch, int shrink, int adj) {
super(stretch, shrink, adj);
}
@@ -45,7 +52,7 @@
private TextAdjustingInfo adjustingInfo = null;
/**
- * Default onstructor
+ * Default constructor
*/
public AbstractTextArea() {
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/InlineArea.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/InlineArea.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/InlineArea.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/area/inline/InlineArea.java Wed Sep 7 15:20:36 2005
@@ -42,6 +42,13 @@
// total adjustment (= ipd - width of fixed elements)
protected int adjustment;
+ /**
+ * Constructor
+ *
+ * @param stretch the available space for stretching
+ * @param shrink the available space for shrinking
+ * @param adj space adjustment type
+ */
protected InlineAdjustingInfo(int stretch, int shrink, int adj) {
availableStretch = stretch;
availableShrink = shrink;
@@ -122,8 +129,9 @@
}
/**
- * Override Area.addChildArea(Area)
- * set the parent for the child area
+ * Set the parent for the child area.
+ *
+ * @see org.apache.fop.area.inline.Area#addChildArea(Area)
*/
public void addChildArea(Area childArea) {
super.addChildArea(childArea);
@@ -132,7 +140,9 @@
}
}
- /** @return true if the inline area is underlined. */
+ /**
+ *@return true if the inline area is underlined.
+ */
public boolean hasUnderline() {
return getBooleanTrait(Trait.UNDERLINE);
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ColorType.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ColorType.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ColorType.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/ColorType.java Wed Sep 7 15:20:36 2005
@@ -29,29 +29,29 @@
* Returns the blue component of the color.
* @return float a value between 0.0 and 1.0
*/
- public float getBlue();
+ float getBlue();
/**
* Returns the green component of the color.
* @return float a value between 0.0 and 1.0
*/
- public float getGreen();
+ float getGreen();
/**
* Returns the red component of the color.
* @return float a value between 0.0 and 1.0
*/
- public float getRed();
+ float getRed();
/**
* Returns the alpha (degree of opaque-ness) component of the color.
* @return float a value between 0.0 (fully transparent) and 1.0 (fully opaque)
*/
- public float getAlpha();
+ float getAlpha();
/**
* Returns an AWT instance of this color
* @return float the AWT color represented by this ColorType instance
*/
- public Color getAWTColor();
-}
\ No newline at end of file
+ Color getAWTColor();
+}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/Length.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/Length.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/Length.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/Length.java Wed Sep 7 15:20:36 2005
@@ -26,13 +26,13 @@
* Returns the length in 1/1000ths of a point (millipoints)
* @return the length in millipoints
*/
- public int getValue();
+ int getValue();
/**
* Returns the length in 1/1000ths of a point (millipoints)
* @param context The context for the length calculation (for percentage based lengths)
* @return the length in millipoints
*/
- public int getValue(PercentBaseContext context);
+ int getValue(PercentBaseContext context);
}
Modified: xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/LengthBase.java
URL: http://svn.apache.org/viewcvs/xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/LengthBase.java?rev=279439&r1=279438&r2=279439&view=diff
==============================================================================
--- xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/LengthBase.java (original)
+++ xmlgraphics/fop/trunk/src/java/org/apache/fop/datatypes/LengthBase.java Wed Sep 7 15:20:36 2005
@@ -77,6 +77,7 @@
* @param parentFO parent FO for this
* @param plist property list for this
* @param iBaseType a member of {@link #PERCENT_BASED_LENGTH_TYPES}
+ * @throws PropertyException
*/
public LengthBase(FObj parentFO, PropertyList plist, int iBaseType) throws PropertyException {
this.fobj = plist.getFObj();
@@ -87,6 +88,10 @@
break;
case INH_FONTSIZE:
this.fontSize = plist.getInherited(Constants.PR_FONT_SIZE).getLength();
+ break;
+ default:
+ // TODO: pacify CheckStyle
+ // throw new RuntimeException();
break;
}
}
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-commits-unsubscribe@xmlgraphics.apache.org
For additional commands, e-mail: fop-commits-help@xmlgraphics.apache.org