peterreilly    2004/12/06 09:54:26

  Modified:    src/main/org/apache/tools/ant/taskdefs/cvslib CvsUser.java
  Log:
  Some general style changes, javadoc comments, removed c++ style variable names
  Obtained from: Kevin Jackson
  
  Revision  Changes    Path
  1.10      +14 -14    
ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsUser.java
  
  Index: CvsUser.java
  ===================================================================
  RCS file: 
/home/cvs/ant/src/main/org/apache/tools/ant/taskdefs/cvslib/CvsUser.java,v
  retrieving revision 1.9
  retrieving revision 1.10
  diff -u -r1.9 -r1.10
  --- CvsUser.java      9 Mar 2004 16:48:14 -0000       1.9
  +++ CvsUser.java      6 Dec 2004 17:54:26 -0000       1.10
  @@ -25,9 +25,9 @@
    */
   public class CvsUser {
       /** The user's Id */
  -    private String m_userID;
  +    private String userID;
       /** The user's full name */
  -    private String m_displayName;
  +    private String displayName;
   
   
       /**
  @@ -36,7 +36,7 @@
        * @param displayName the user's full name
        */
       public void setDisplayname(final String displayName) {
  -        m_displayName = displayName;
  +        this.displayName = displayName;
       }
   
   
  @@ -46,7 +46,7 @@
        * @param userID the user's new id value.
        */
       public void setUserid(final String userID) {
  -        m_userID = userID;
  +        this.userID = userID;
       }
   
   
  @@ -55,8 +55,8 @@
        *
        * @return The userID value
        */
  -    String getUserID() {
  -        return m_userID;
  +    public String getUserID() {
  +        return userID;
       }
   
   
  @@ -65,26 +65,26 @@
        *
        * @return the user's full name
        */
  -    String getDisplayname() {
  -        return m_displayName;
  +    public String getDisplayname() {
  +        return displayName;
       }
   
   
       /**
  -     * validate that this object is configured.
  +     * Validate that this object is configured.
        *
        * @exception BuildException if the instance has not be correctly
        *            configured.
        */
  -    void validate() throws BuildException {
  -        if (null == m_userID) {
  +    public void validate() throws BuildException {
  +        if (null == userID) {
               final String message = "Username attribute must be set.";
   
               throw new BuildException(message);
           }
  -        if (null == m_displayName) {
  +        if (null == displayName) {
               final String message =
  -                "Displayname attribute must be set for userID " + m_userID;
  +                "Displayname attribute must be set for userID " + userID;
   
               throw new BuildException(message);
           }
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to