moved CheckstyleException to api package to support avalonization
This commit is contained in:
parent
39651f60d0
commit
085befb3ad
|
|
@ -27,6 +27,8 @@ import java.util.Set;
|
|||
import java.util.StringTokenizer;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.Check;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
|
||||
import org.apache.commons.beanutils.BeanUtils;
|
||||
import org.apache.commons.beanutils.ConvertUtils;
|
||||
import org.apache.commons.beanutils.converters.BooleanConverter;
|
||||
|
|
|
|||
|
|
@ -18,6 +18,7 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.FileSetCheck;
|
||||
import com.puppycrawl.tools.checkstyle.api.LocalizedMessage;
|
||||
import com.puppycrawl.tools.checkstyle.api.MessageDispatcher;
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ import org.xml.sax.SAXException;
|
|||
import org.xml.sax.XMLReader;
|
||||
import org.xml.sax.helpers.DefaultHandler;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
|
||||
// TODO: Fix the loader so it doesn't validate the document
|
||||
/**
|
||||
* Describe class <code>ConfigurationLoader</code> here.
|
||||
|
|
|
|||
|
|
@ -23,6 +23,7 @@ import java.util.Map;
|
|||
import java.util.HashMap;
|
||||
import java.util.Set;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.Configuration;
|
||||
|
||||
/**
|
||||
|
|
|
|||
|
|
@ -35,6 +35,8 @@ import org.apache.commons.cli.Options;
|
|||
import org.apache.commons.cli.ParseException;
|
||||
import org.apache.commons.cli.PosixParser;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
|
||||
/**
|
||||
* Wrapper command line program for the Checker.
|
||||
* @author <a href="mailto:oliver@puppycrawl.com">Oliver Burn</a>
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ package com.puppycrawl.tools.checkstyle.api;
|
|||
|
||||
import java.lang.reflect.InvocationTargetException;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.CheckstyleException;
|
||||
import org.apache.commons.beanutils.BeanUtils;
|
||||
import org.apache.commons.beanutils.ConvertUtils;
|
||||
import org.apache.commons.beanutils.converters.BooleanConverter;
|
||||
|
|
|
|||
|
|
@ -16,7 +16,7 @@
|
|||
// 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;
|
||||
package com.puppycrawl.tools.checkstyle.api;
|
||||
|
||||
/**
|
||||
* Represents an error condition within Checkstyle.
|
||||
|
|
@ -24,14 +24,14 @@ package com.puppycrawl.tools.checkstyle;
|
|||
* @author <a href="mailto:checkstyle@puppycrawl.com">Oliver Burn</a>
|
||||
* @version 1.0
|
||||
*/
|
||||
class CheckstyleException extends Exception
|
||||
public class CheckstyleException extends Exception
|
||||
{
|
||||
/**
|
||||
* Creates a new <code>CheckstyleException</code> instance.
|
||||
*
|
||||
* @param aMessage a <code>String</code> value
|
||||
*/
|
||||
CheckstyleException(String aMessage)
|
||||
public CheckstyleException(String aMessage)
|
||||
{
|
||||
super(aMessage);
|
||||
}
|
||||
|
|
@ -18,8 +18,6 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.api;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.CheckstyleException;
|
||||
|
||||
/**
|
||||
* A component that can be configured.
|
||||
* The general idea of Configuration/Configurable was taken from
|
||||
|
|
|
|||
|
|
@ -20,7 +20,6 @@ package com.puppycrawl.tools.checkstyle.api;
|
|||
|
||||
import java.io.Serializable;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.CheckstyleException;
|
||||
|
||||
/**
|
||||
* A Configuration is used to configure a Configurable component.
|
||||
|
|
|
|||
|
|
@ -18,7 +18,6 @@
|
|||
////////////////////////////////////////////////////////////////////////////////
|
||||
package com.puppycrawl.tools.checkstyle.api;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.CheckstyleException;
|
||||
|
||||
/**
|
||||
* A Component that needs context information from it's container to work.
|
||||
|
|
|
|||
|
|
@ -2,6 +2,7 @@ package com.puppycrawl.tools.checkstyle;
|
|||
|
||||
import java.util.Properties;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.checks.AvoidStarImport;
|
||||
import com.puppycrawl.tools.checkstyle.checks.RightCurlyCheck;
|
||||
import com.puppycrawl.tools.checkstyle.checks.RightCurlyOption;
|
||||
|
|
|
|||
|
|
@ -1,5 +1,6 @@
|
|||
package com.puppycrawl.tools.checkstyle;
|
||||
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.checks.ConstantNameCheck;
|
||||
|
||||
public class ConstantNameCheckTest
|
||||
|
|
|
|||
|
|
@ -2,7 +2,7 @@ package com.puppycrawl.tools.checkstyle;
|
|||
|
||||
import com.puppycrawl.tools.checkstyle.checks.HeaderCheck;
|
||||
import com.puppycrawl.tools.checkstyle.checks.RegexpHeaderCheck;
|
||||
import com.puppycrawl.tools.checkstyle.CheckstyleException;
|
||||
import com.puppycrawl.tools.checkstyle.api.CheckstyleException;
|
||||
|
||||
public class HeaderCheckTest extends BaseCheckTestCase
|
||||
{
|
||||
|
|
|
|||
Loading…
Reference in New Issue