Browse Source

Javadoc + removal of m_ fields

Obtained from: Kevin Jackson


git-svn-id: https://svn.apache.org/repos/asf/ant/core/trunk@277373 13f79535-47bb-0310-9956-ffa450edef68
master
Peter Reilly 20 years ago
parent
commit
897463d1f9
1 changed files with 22 additions and 13 deletions
  1. +22
    -13
      src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java

+ 22
- 13
src/main/org/apache/tools/ant/taskdefs/cvslib/RCSFile.java View File

@@ -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;
}
}


Loading…
Cancel
Save