273274275276277278279280281282283
if (tryConvert) { rc = converter.tryConvertTo(type, exchange, value); } else { rc = converter.convertTo(type, exchange, value); } if (rc == null && converter.allowNull()) { return null; } else if (rc != null) { return rc; } }
295296297298299300301302303304305
if (tryConvert) { rc = tc.tryConvertTo(primitiveType, exchange, value); } else { rc = tc.convertTo(primitiveType, exchange, value); } if (rc == null && tc.allowNull()) { return null; } else if (rc != null) { return rc; } }
313314315316317318319320321322323
if (tryConvert) { rc = tc.tryConvertTo(type, exchange, value); } else { rc = tc.convertTo(type, exchange, value); } if (rc == null && tc.allowNull()) { return null; } if (Void.TYPE.equals(rc)) { // it cannot be converted so give up
272273274275276277278279280281282
294295296297298299300301302303304
312313314315316317318319320321322