dion 02/04/21 18:14:56
Modified: src/java/org/apache/maven DVSLFormatter.java
BaseProjectTask.java DVSLPathTool.java
Log:
Fixed style violations
Revision Changes Path
1.3 +3 -2
jakarta-turbine-maven/src/java/org/apache/maven/DVSLFormatter.java
Index: DVSLFormatter.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/DVSLFormatter.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DVSLFormatter.java 9 Mar 2002 15:55:46 -0000 1.2
+++ DVSLFormatter.java 22 Apr 2002 01:14:56 -0000 1.3
@@ -62,7 +62,7 @@
* shouldn't be done in a DVSL stylesheet.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Pete Kazmier</a>
- * @version $Id: DVSLFormatter.java,v 1.2 2002/03/09 15:55:46 kaz Exp $
+ * @version $Id: DVSLFormatter.java,v 1.3 2002/04/22 01:14:56 dion Exp $
*/
public class DVSLFormatter
{
@@ -76,7 +76,7 @@
* Patterns are specified using the same format as <code>
* java.text.DecimalFormat</code>.
* <p/>
- * This method is thead-hostile.
+ * This method is thread-hostile.
*
* @see java.text.DecimalFormat
* @param value The number to format.
@@ -86,6 +86,7 @@
* specified.
*/
public static final String formatNumber(Number value, String pattern)
+ throws IllegalArgumentException
{
formatter.applyPattern(pattern);
return formatter.format(value.doubleValue());
1.6 +6 -4
jakarta-turbine-maven/src/java/org/apache/maven/BaseProjectTask.java
Index: BaseProjectTask.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/BaseProjectTask.java,v
retrieving revision 1.5
retrieving revision 1.6
diff -u -r1.5 -r1.6
--- BaseProjectTask.java 16 Apr 2002 21:15:19 -0000 1.5
+++ BaseProjectTask.java 22 Apr 2002 01:14:56 -0000 1.6
@@ -74,7 +74,7 @@
* An ant task for creating an xml schema from an sql schema
*
* @author <a href="[EMAIL PROTECTED]">Jason van Zyl</a>
- * @version $Id: BaseProjectTask.java,v 1.5 2002/04/16 21:15:19 jvanzyl Exp $
+ * @version $Id: BaseProjectTask.java,v 1.6 2002/04/22 01:14:56 dion Exp $
*/
public class BaseProjectTask
extends TexenTask
@@ -109,7 +109,8 @@
}
/**
- * Set the project descriptor file. This file must exist.
+ * Set the list file that holds jar file names. This file must exist
+ * @param listFile the list file
*/
public void setListFile(File listFile)
{
@@ -119,10 +120,11 @@
/**
* Execute the task.
*
- * @throws BuildException
+ * @throws BuildException when any error occurs
+ * @return the velocity context for use in DVSL(?)
*/
public Context initControlContext()
- throws Exception
+ throws BuildException
{
context = new VelocityContext();
1.3 +2 -3
jakarta-turbine-maven/src/java/org/apache/maven/DVSLPathTool.java
Index: DVSLPathTool.java
===================================================================
RCS file:
/home/cvs/jakarta-turbine-maven/src/java/org/apache/maven/DVSLPathTool.java,v
retrieving revision 1.2
retrieving revision 1.3
diff -u -r1.2 -r1.3
--- DVSLPathTool.java 18 Mar 2002 04:38:49 -0000 1.2
+++ DVSLPathTool.java 22 Apr 2002 01:14:56 -0000 1.3
@@ -54,7 +54,6 @@
* <http://www.apache.org/>.
*/
-import java.util.StringTokenizer;
import org.apache.commons.lang.Strings;
/**
@@ -63,7 +62,7 @@
* relative paths.
*
* @author <a href="mailto:[EMAIL PROTECTED]">Pete Kazmier</a>
- * @version $Id: DVSLPathTool.java,v 1.2 2002/03/18 04:38:49 kaz Exp $
+ * @version $Id: DVSLPathTool.java,v 1.3 2002/04/22 01:14:56 dion Exp $
*/
public class DVSLPathTool
{
@@ -151,7 +150,7 @@
*/
String separator = determineSeparator(filename);
filename = Strings.chompLast(filename, separator);
- if (! filename.startsWith(separator))
+ if (!filename.startsWith(separator))
{
filename = separator + filename;
}