vmassol 2002/08/28 11:41:59
Modified: anttasks/src/java/org/apache/cactus/ant ChangeLogTask.java
Log:
fixed last checkstyle errors
Revision Changes Path
1.9 +33 -1
jakarta-cactus/anttasks/src/java/org/apache/cactus/ant/ChangeLogTask.java
Index: ChangeLogTask.java
===================================================================
RCS file:
/home/cvs/jakarta-cactus/anttasks/src/java/org/apache/cactus/ant/ChangeLogTask.java,v
retrieving revision 1.8
retrieving revision 1.9
diff -u -r1.8 -r1.9
--- ChangeLogTask.java 27 Aug 2002 22:40:53 -0000 1.8
+++ ChangeLogTask.java 28 Aug 2002 18:41:59 -0000 1.9
@@ -764,17 +764,29 @@
this.comment = theComment;
}
+ /**
+ * Add a file to the list of files in that entry.
+ *
+ * @param theFile the file name
+ * @param theRevision the file revision
+ */
public void addFile(String theFile, String theRevision)
{
this.files.addElement(new RCSFile(theFile, theRevision));
}
+ /**
+ * @return a string representation of this entry
+ */
public String toString()
{
return this.author + "\n" + this.date + "\n" + this.files + "\n"
+ this.comment;
}
+ /**
+ * Renders the entry in XML to the output stream.
+ */
public void print()
{
output.println("\t<entry>");
@@ -801,22 +813,42 @@
output.println("\t</entry>");
}
+ /**
+ * Contains RCS file content
+ */
private class RCSFile
{
+ /**
+ * Name of file
+ */
private String name;
+
+ /**
+ * File revision
+ */
private String revision;
+ /**
+ * @param theName the file name
+ * @param theRevision the file revision
+ */
private RCSFile(String theName, String theRevision)
{
this.name = theName;
this.revision = theRevision;
}
+ /**
+ * @return the file name
+ */
public String getName()
{
return this.name;
}
+ /**
+ * @return the file revision
+ */
public String getRevision()
{
return this.revision;
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>