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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to