Re-add a simple getDefaultValue implementation to prevent runtime errors.
This commit is contained in:
parent
4239bb201b
commit
06685adbec
1 changed files with 11 additions and 0 deletions
|
@ -160,6 +160,17 @@ public class HopObject extends ScriptableObject implements Wrapper {
|
||||||
return className;
|
return className;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return a primitive representation for this object.
|
||||||
|
* FIXME: We always return a string representation.
|
||||||
|
*
|
||||||
|
* @param hint the type hint
|
||||||
|
* @return the default value for the object
|
||||||
|
*/
|
||||||
|
public Object getDefaultValue(Class hint) {
|
||||||
|
return toString();
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
*
|
*
|
||||||
*
|
*
|
||||||
|
|
Loading…
Add table
Reference in a new issue