You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@turbine.apache.org by dl...@apache.org on 2001/06/20 04:43:16 UTC

cvs commit: jakarta-turbine/src/java/org/apache/turbine/om NumberKey.java

dlr         01/06/19 19:43:16

  Modified:    src/java/org/apache/turbine/om NumberKey.java
  Log:
  Minor simplification to setValue(NumberKey).
  
  Revision  Changes    Path
  1.8       +1 -4      jakarta-turbine/src/java/org/apache/turbine/om/NumberKey.java
  
  Index: NumberKey.java
  ===================================================================
  RCS file: /home/cvs/jakarta-turbine/src/java/org/apache/turbine/om/NumberKey.java,v
  retrieving revision 1.7
  retrieving revision 1.8
  diff -u -r1.7 -r1.8
  --- NumberKey.java	2001/05/20 00:04:03	1.7
  +++ NumberKey.java	2001/06/20 02:43:13	1.8
  @@ -136,10 +136,7 @@
        */
       public void setValue(NumberKey key)
       {
  -        if (key != null)
  -            this.key = key.getValue();
  -        else
  -            this.key = null;
  +        this.key = (key == null ? null : key.getValue());
       }
   
       /**
  
  
  

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