ant-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From peterrei...@apache.org
Subject cvs commit: ant/src/main/org/apache/tools/ant/taskdefs/cvslib RCSFile.java
Date Mon, 17 Jan 2005 18:48:26 GMT
peterreilly    2005/01/17 10:48:26

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib RCSFile.java
  Log:
  Javadoc + removal of m_ fields
  Obtained from: Kevin Jackson
  
  Revision  Changes    Path
  1.10      +23 -14    ant/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java
  
  Index: RCSFile.java
  ===================================================================
  RCS file: /home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- RCSFile.java	9 Mar 2004 16:48:14 -0000	1.9
  +++ RCSFile.java	17 Jan 2005 18:48:26 -0000	1.10
  @@ -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 @@
    * @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 @@
       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;
       }
   }
   
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: dev-unsubscribe@ant.apache.org
For additional commands, e-mail: dev-help@ant.apache.org


Mime
View raw message