|
From: <rga...@us...> - 2002-10-20 21:55:50
|
Update of /cvsroot/csms/csms-core/src/java/org/fanfoot/scoring
In directory usw-pr-cvs1:/tmp/cvs-serv21209
Modified Files:
ScoringConfiguration.java
Log Message:
Correcting checkstyle errors
Index: ScoringConfiguration.java
===================================================================
RCS file: /cvsroot/csms/csms-core/src/java/org/fanfoot/scoring/ScoringConfiguration.java,v
retrieving revision 1.1
retrieving revision 1.2
diff -C2 -d -r1.1 -r1.2
*** ScoringConfiguration.java 18 Oct 2002 14:56:45 -0000 1.1
--- ScoringConfiguration.java 20 Oct 2002 21:55:47 -0000 1.2
***************
*** 53,60 ****
private String xSLURL;
! static final Logger logger = Logger.getLogger("org.fanfoot.scoring");
/** Creates a new instance of ScoreConfiguration
! * @param strURL the url of the XSL stylesheet to generate scores from <code>Events</code>
*/
public ScoringConfiguration(String strURL) {
--- 53,62 ----
private String xSLURL;
! /** where to write logging inofrmation */
! final Logger logger = Logger.getLogger("org.fanfoot.scoring");
/** Creates a new instance of ScoreConfiguration
! * @param strURL the url of the XSL stylesheet to generate
! * scores from <code>Events</code>
*/
public ScoringConfiguration(String strURL) {
***************
*** 82,86 ****
* DOM documents into a score DOM document.
* @return scores as a dom Document
! * @throws ScoringConfigurtionException if unable to load the XSL file
* @refactor many times the XSL will not have changed so there is no need
* to relod the document. Cache it here.
--- 84,88 ----
* DOM documents into a score DOM document.
* @return scores as a dom Document
! * @throws ScoringConfigurationException if unable to load the XSL file
* @refactor many times the XSL will not have changed so there is no need
* to relod the document. Cache it here.
***************
*** 91,102 ****
doc = org.saafe.utils.XMLUtils.parseXML(xSLURL);
} catch (javax.xml.parsers.ParserConfigurationException pce) {
! logger.log(Level.WARNING, "Unable to parse scoring XSL", pce);
! throw new ScoringConfigurationException("Unable to parse scoring XSL", pce);
} catch ( org.xml.sax.SAXException se) {
! logger.log(Level.WARNING, "Unable to parse scoring XSL", se);
! throw new ScoringConfigurationException("Unable to parse scoring XSL", se);
} catch (java.io.IOException ioe) {
! logger.log(Level.WARNING, "Unable to parse scoring XSL", ioe);
! throw new ScoringConfigurationException("Unable to parse scoring XSL", ioe);
}
--- 93,109 ----
doc = org.saafe.utils.XMLUtils.parseXML(xSLURL);
} catch (javax.xml.parsers.ParserConfigurationException pce) {
! String strError = "Unable to parse scoring XSL";
! logger.log(Level.SEVERE, strError, pce);
! throw new ScoringConfigurationException(strError,
! pce);
} catch ( org.xml.sax.SAXException se) {
! String strError = "Unable to parse scoring XSL";
! logger.log(Level.SEVERE, strError, se);
! throw new ScoringConfigurationException(strError,
! se);
} catch (java.io.IOException ioe) {
! String strError = "Unable to parse scoring XSL";
! logger.log(Level.SEVERE, strError, ioe);
! throw new ScoringConfigurationException(strError, ioe);
}
|