in gshell-support/gshell-clp/src/main/java/org/apache/geronimo/gshell/clp/Descriptor.java [43:67]
protected Descriptor(final String id, final String description, final String token, final boolean required, final Class<? extends Handler> handler, final boolean multiValued) {
assert id != null;
this.id = id;
// Handle "" = null, since default values in annotations can be set to null
if (description != null && description.length() == 0) {
this.description = null;
}
else {
this.description = description;
}
if (token != null && token.length() == 0) {
this.token = null;
}
else {
this.token = token;
}
this.required = required;
// On IBM JDK, the value passed is null instead of the default value, so fix it in case
this.handler = handler != null ? handler : Handler.class;
this.multiValued = multiValued;
}