User: kz Date: 2008-03-05 17:42:16+0000 Modified: dba/reportdesign/java/com/sun/star/report/pentaho/parser/rpt/FormatConditionReadHandler.java
Log: INTEGRATION: CWS rptchart01_DEV300 (1.2.70); FILE MERGED 2008/02/21 09:57:25 oj 1.2.70.2: #i85225# fixes found with PMD 2008/02/20 10:52:57 oj 1.2.70.1: format changes File Changes: Directory: /dba/reportdesign/java/com/sun/star/report/pentaho/parser/rpt/ ========================================================================= File [changed]: FormatConditionReadHandler.java Url: http://dba.openoffice.org/source/browse/dba/reportdesign/java/com/sun/star/report/pentaho/parser/rpt/FormatConditionReadHandler.java?r1=1.2&r2=1.3 Delta lines: +45 -49 --------------------- --- FormatConditionReadHandler.java 2007-07-09 11:56:09+0000 1.2 +++ FormatConditionReadHandler.java 2008-03-05 17:42:14+0000 1.3 @@ -33,12 +33,10 @@ * MA 02111-1307 USA * ************************************************************************/ - package com.sun.star.report.pentaho.parser.rpt; import com.sun.star.report.pentaho.model.FormatCondition; import com.sun.star.report.pentaho.model.ReportElement; -import com.sun.star.report.pentaho.parser.StarXmlFactoryModule; import com.sun.star.report.pentaho.OfficeNamespaces; import org.jfree.report.expressions.FormulaExpression; import org.jfree.xmlns.parser.AbstractXmlReadHandler; @@ -53,6 +51,7 @@ */ public class FormatConditionReadHandler extends AbstractXmlReadHandler { + private ReportElement element; public FormatConditionReadHandler(final ReportElement element) @@ -67,23 +66,20 @@ protected void startParsing(final Attributes attrs) throws SAXException { super.startParsing(attrs); - final String enabledText = attrs.getValue - (OfficeNamespaces.OOREPORT_NS, "enabled"); + final String enabledText = attrs.getValue(OfficeNamespaces.OOREPORT_NS, "enabled"); final boolean enabled = (enabledText == null || "true".equals(enabledText)); final String formula = attrs.getValue(OfficeNamespaces.OOREPORT_NS, "formula"); if (formula == null) { - throw new ParseException - ("Required attribute 'formula' is missing.", getLocator()); + throw new ParseException("Required attribute 'formula' is missing.", getLocator()); } final String stylename = attrs.getValue(OfficeNamespaces.OOREPORT_NS, "style-name"); if (stylename == null) { - throw new ParseException - ("Required attribute 'style-name' is missing.", getLocator()); + throw new ParseException("Required attribute 'style-name' is missing.", getLocator()); } final FormulaExpression valueExpression = new FormulaExpression(); valueExpression.setFormula(formula); --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
