commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "James Mitchell" <jmitch...@apache.org>
Subject [chain] CopyCommand
Date Fri, 07 Jan 2005 18:11:22 GMT
Just poking around in the source (for my own learning) and came across this 
bit of code.

I won't even pretend to know what this is supposed to do, but unless I'm way 
off, shouldn't this
doing " value = context.get(getFromKey()); " on line 5?



1  public boolean execute(Context context) throws Exception {
2
3    Object value = this.value;
4        if (value == null) {
5            context.get(getFromKey());
6        }
7    if (value != null) {
8        context.put(getToKey(), value);
9    } else {
10        context.remove(getToKey());
11    }
12    return (false);
13
14  }
15




--
James Mitchell
Software Engineer / Open Source Evangelist
EdgeTech, Inc.
678.910.8017
AIM: jmitchtx



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


Mime
View raw message