peterreilly 2004/12/06 09:33:09 Modified: src/main/org/apache/tools/ant/taskdefs/cvslib CVSEntry.java Log: checkstyle changes Obtained from: Kevin Jackson Revision Changes Path 1.13 +82 -41 ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CVSEntry.java Index: CVSEntry.java =================================================================== RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CVSEntry.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- CVSEntry.java 9 Mar 2004 16:48:14 -0000 1.12 +++ CVSEntry.java 6 Dec 2004 17:33:09 -0000 1.13 @@ -24,46 +24,87 @@ * * @version $Revision$ $Date$ */ -class CVSEntry { - private Date m_date; - private String m_author; - private final String m_comment; - private final Vector m_files = new Vector(); - - public CVSEntry(Date date, String author, String comment) { - m_date = date; - m_author = author; - m_comment = comment; - } - - public void addFile(String file, String revision) { - m_files.addElement(new RCSFile(file, revision)); - } - - public void addFile(String file, String revision, String previousRevision) { - m_files.addElement(new RCSFile(file, revision, previousRevision)); - } - - Date getDate() { - return m_date; - } - - void setAuthor(final String author) { - m_author = author; - } - - String getAuthor() { - return m_author; - } - - String getComment() { - return m_comment; - } - - Vector getFiles() { - return m_files; - } - +public class CVSEntry { + private Date date; + private String author; + private final String comment; + private final Vector files = new Vector(); + + /** + * Creates a new instance of a CVSEntry + * @param date the date + * @param author the author + * @param comment a comment to be added to the revision + */ + public CVSEntry(final Date date, final String author, final String comment) { + this.date = date; + this.author = author; + this.comment = comment; + } + + /** + * Adds a file to the CVSEntry + * @param file the file to add + * @param revision the revision + */ + public void addFile(final String file, final String revision) { + files.addElement(new RCSFile(file, revision)); + } + + /** + * Adds a file to the CVSEntry + * @param file the file to add + * @param revision the revision + * @param previousRevision the previous revision + */ + public void addFile(final String file, final String revision, final String previousRevision) { + files.addElement(new RCSFile(file, revision, previousRevision)); + } + + /** + * Gets the date of the CVSEntry + * @return the date + */ + public Date getDate() { + return date; + } + + /** + * Sets the author of the CVSEntry + * @param author the author + */ + public void setAuthor(final String author) { + this.author = author; + } + + /** + * Gets the author of the CVSEntry + * @return the author + */ + public String getAuthor() { + return author; + } + + /** + * Gets the comment for the CVSEntry + * @return the comment + */ + public String getComment() { + return comment; + } + + /** + * Gets the files in this CVSEntry + * @return the files + */ + public Vector getFiles() { + return files; + } + + /** + * Gets a String containing author, date, files and comment + * @return a string representation of this CVSEntry + */ public String toString() { return getAuthor() + "\n" + getDate() + "\n" + getFiles() + "\n" + getComment();
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]