From 9d4233b0b73e975aa752ff78ba16b40e65ece864 Mon Sep 17 00:00:00 2001 From: Oliver Burn Date: Sat, 7 Dec 2002 12:24:03 +0000 Subject: [PATCH] Fixed the checkstyle errors --- .../tools/checkstyle/ConfigurationLoader.java | 5 +++-- .../tools/checkstyle/HardErrorHandler.java | 20 ++++++++++++++++++- .../checkstyle/PackageObjectFactory.java | 18 +++++++++++++++++ .../tools/checkstyle/api/Context.java | 3 ++- 4 files changed, 42 insertions(+), 4 deletions(-) diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java index 282fde223..2acda2156 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/ConfigurationLoader.java @@ -58,18 +58,19 @@ class ConfigurationLoader private final XMLReader mParser; /** the loaded configurations **/ private Stack mConfigStack = new Stack(); - /** the Configuration that is beeing built */ + /** the Configuration that is being built */ private Configuration mConfiguration = null; /** * Creates a new ConfigurationLoader instance. + * @param aOverrideProps overriding properties * @throws ParserConfigurationException if an error occurs * @throws SAXException if an error occurs */ private ConfigurationLoader(Properties aOverrideProps) throws ParserConfigurationException, SAXException { - mOverrideProps = aOverrideProps; + mOverrideProps = aOverrideProps; final SAXParserFactory factory = SAXParserFactory.newInstance(); factory.setValidating(true); mParser = factory.newSAXParser().getXMLReader(); diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/HardErrorHandler.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/HardErrorHandler.java index b4e528560..744701bdf 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/HardErrorHandler.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/HardErrorHandler.java @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code for adherence to a set of rules. +// Copyright (C) 2001-2002 Oliver Burn +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +//////////////////////////////////////////////////////////////////////////////// package com.puppycrawl.tools.checkstyle; import org.xml.sax.ErrorHandler; @@ -24,7 +42,7 @@ class HardErrorHandler private HardErrorHandler() { } - + /** @see org.xml.sax.ErrorHandler#warning(org.xml.sax.SAXParseException) */ public void warning(SAXParseException aEx) throws SAXException { diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java index d71d77bac..223f985db 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/PackageObjectFactory.java @@ -1,3 +1,21 @@ +//////////////////////////////////////////////////////////////////////////////// +// checkstyle: Checks Java source code for adherence to a set of rules. +// Copyright (C) 2001-2002 Oliver Burn +// +// This library is free software; you can redistribute it and/or +// modify it under the terms of the GNU Lesser General Public +// License as published by the Free Software Foundation; either +// version 2.1 of the License, or (at your option) any later version. +// +// This library is distributed in the hope that it will be useful, +// but WITHOUT ANY WARRANTY; without even the implied warranty of +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU +// Lesser General Public License for more details. +// +// You should have received a copy of the GNU Lesser General Public +// License along with this library; if not, write to the Free Software +// Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA +//////////////////////////////////////////////////////////////////////////////// package com.puppycrawl.tools.checkstyle; import com.puppycrawl.tools.checkstyle.api.CheckstyleException; diff --git a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/Context.java b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/Context.java index 534cac8ac..81b425fc1 100644 --- a/src/checkstyle/com/puppycrawl/tools/checkstyle/api/Context.java +++ b/src/checkstyle/com/puppycrawl/tools/checkstyle/api/Context.java @@ -9,8 +9,9 @@ // // This library is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of -// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. MainSee the GNU +// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU // Lesser General Public License for more details. +// // You should have received a copy of the GNU Lesser General Public // License along with this library; if not, write to the Free Software // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA