Menu

#3 OsidContext.assignContext not delete

open
nobody
5
2012-12-07
2004-11-24
No

In the OsidContext.assignContext(key,context) javadoc:

[... ]
context - [...]. Setting a null context removes the
context.
[..]

in the code (v2.0 in files) :

public final void assignContext(String key,
java.io.Serializable context) throws
org.osid.OsidException {
// Put data
if ((null != key) && (null != context)) {
contextInfo.put(key, context);

} else if ((null != key) && (null == context)) {

// if context null

if (contextInfo.get(key).equals(context)) {

// and context equals ??

contextInfo.remove(key);

}
} else {
throw new
org.osid.OsidException(org.osid.OsidException.NULL_ARGUMENT);
}
}

Discussion


Log in to post a comment.