{
appletParams = AppletParams.getAppletParams(args, vargs);
}
- else if (Platform.isJS() && args.length == 0)
- {
- isApplet = true;
- appletParams = AppletParams
- .getAppletParams(Platform.getAppletInfoAsMap(), vargs);
- }
else
{
+ if (Platform.isJS())
+
+ {
+ isApplet = true;
+ appletParams = AppletParams
+ .getAppletParams(Platform.getAppletInfoAsMap(), vargs);
+ }
for (int i = 0; i < args.length; i++)
{
String arg = args[i].trim();
Object value;
return (appletParams == null ? null
: (value = appletParams.get(key.toLowerCase())) == null
- ? def : asString ? value.toString()
+ ? def : asString ? "" + value
: value);
}