[Clirr-devel] CVS: clirr/core/src/java/net/sf/clirr/ant AntTask.java,1.1,1.2
Status: Alpha
Brought to you by:
lkuehne
From: Simon K. <s_k...@us...> - 2004-07-18 00:56:27
|
Update of /cvsroot/clirr/clirr/core/src/java/net/sf/clirr/ant In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26238 Modified Files: AntTask.java Log Message: Fix checkstyle issues: lines longer than 110 chars Index: AntTask.java =================================================================== RCS file: /cvsroot/clirr/clirr/core/src/java/net/sf/clirr/ant/AntTask.java,v retrieving revision 1.1 retrieving revision 1.2 diff -u -r1.1 -r1.2 --- AntTask.java 10 Jul 2004 13:37:26 -0000 1.1 +++ AntTask.java 18 Jul 2004 00:56:18 -0000 1.2 @@ -76,9 +76,11 @@ public void setType(String type) { String lowerCase = type.toLowerCase(); - if (!lowerCase.equals(FORMATTER_TYPE_XML) && !lowerCase.equals(FORMATTER_TYPE_PLAIN)) + if (!lowerCase.equals(FORMATTER_TYPE_XML) + && !lowerCase.equals(FORMATTER_TYPE_PLAIN)) { - throw new BuildException("Illegal formatter type, only plain and xml are supported"); + throw new BuildException( + "Illegal formatter type, only plain and xml are supported"); } this.type = type; @@ -189,7 +191,8 @@ if (origFiles == null || newFiles == null) { - throw new BuildException("Missing nested filesets origFiles and newFiles.", getLocation()); + throw new BuildException( + "Missing nested filesets origFiles and newFiles.", getLocation()); } if (newClassPath == null) @@ -207,12 +210,16 @@ if (origJars.length == 0) { - throw new BuildException("No files in nested fileset origFiles - nothing to check!" + " Please check your fileset specification."); + throw new BuildException( + "No files in nested fileset origFiles - nothing to check!" + + " Please check your fileset specification."); } if (newJars.length == 0) { - throw new BuildException("No files in nested fileset newFiles - nothing to check!" + " Please check your fileset specification."); + throw new BuildException( + "No files in nested fileset newFiles - nothing to check!" + + " Please check your fileset specification."); } final ClassLoader origThirdPartyLoader = createClasspathLoader(origClassPath); @@ -244,7 +251,8 @@ } catch (IOException ex) { - log("unable to initialize formatter: " + ex.getMessage(), Project.MSG_WARN); + log("unable to initialize formatter: " + ex.getMessage(), + Project.MSG_WARN); } } @@ -256,19 +264,22 @@ checker.addDiffListener(counter); try { - checker.reportDiffs(origJars, newJars, origThirdPartyLoader, newThirdPartyLoader, null); + checker.reportDiffs( + origJars, newJars, origThirdPartyLoader, newThirdPartyLoader, null); } catch (CheckerException ex) { throw new BuildException(ex.getMessage()); } - if (counter.getBinWarnings() > 0 && failOnBinWarning || counter.getBinErrors() > 0 && failOnBinError) + if ((counter.getBinWarnings() > 0 && failOnBinWarning) + || (counter.getBinErrors() > 0 && failOnBinError)) { throw new BuildException("detected binary incompatible API changes"); } - if (counter.getSrcWarnings() > 0 && failOnSrcWarning || counter.getSrcErrors() > 0 && failOnSrcError) + if ((counter.getSrcWarnings() > 0 && failOnSrcWarning) + || (counter.getSrcErrors() > 0 && failOnSrcError)) { throw new BuildException("detected source incompatible API changes"); } @@ -290,7 +301,9 @@ } catch (MalformedURLException ex) { - final IllegalArgumentException illegalArgEx = new IllegalArgumentException("Cannot create classLoader from classpath entry " + entry); + final IllegalArgumentException illegalArgEx = + new IllegalArgumentException( + "Cannot create classLoader from classpath entry " + entry); illegalArgEx.initCause(ex); throw illegalArgEx; } |