diff --git a/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java b/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java index c78608901..e1e8cfc84 100644 --- a/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java +++ b/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java @@ -1,5 +1,5 @@ /* - * Copyright 2002-2004 The Apache Software Foundation + * Copyright 2002-2005 The Apache Software Foundation * * Licensed under the Apache License, Version 2.0 (the "License"); * you may not use this file except in compliance with the License. @@ -22,9 +22,9 @@ package org.apache.tools.ant.taskdefs.cvslib; * @version $Revision$ $Date$ */ class RCSFile { - private String m_name; - private String m_revision; - private String m_previousRevision; + private String name; + private String revision; + private String previousRevision; RCSFile(final String name, final String rev) { @@ -35,26 +35,35 @@ class RCSFile { RCSFile(final String name, final String revision, final String previousRevision) { - m_name = name; - m_revision = revision; + this.name = name; + this.revision = revision; if (!revision.equals(previousRevision)) { - m_previousRevision = previousRevision; + this.previousRevision = previousRevision; } } - + /** + * Gets the name of the RCSFile + * @return name of the file + */ String getName() { - return m_name; + return name; } - + /** + * Gets the revision number of the RCSFile + * @return the revision number (as String) + */ String getRevision() { - return m_revision; + return revision; } - + /** + * Gets the previous revision of the RCSFile + * @return the previous revision number (as String) + */ String getPreviousRevision() { - return m_previousRevision; + return previousRevision; } }