confirm instanceof on check parameter from web service

Description

org.idempiere.adinterface.Process.fillParameter

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 line 498 String valueString = null; line 513 Object value = valueString; util line 512, value isn't to any value other null so check instanceof isn't valuable. true? BigDecimal bd = null; if (value instanceof BigDecimal) bd = (BigDecimal)value; else if (value instanceof Integer) bd = new BigDecimal (((Integer)value).intValue()); else bd = new BigDecimal (value.toString());

WDYT?

Environment

None

Status

Assignee

Carlos Ruiz

Reporter

Hiep Lq

Labels

None

Tested By

None

Priority

Major