nashorn/src/jdk.scripting.nashorn/share/classes/jdk/internal/dynalink/TypeConverterFactory.java
equal
deleted
inserted
replaced
380 for(int i = factories.length; i-- > 0;) { |
380 for(int i = factories.length; i-- > 0;) { |
381 final GuardedTypeConversion next = factories[i].convertToType(sourceType, targetType); |
381 final GuardedTypeConversion next = factories[i].convertToType(sourceType, targetType); |
382 if(next != null) { |
382 if(next != null) { |
383 cacheable = cacheable && next.isCacheable(); |
383 cacheable = cacheable && next.isCacheable(); |
384 final GuardedInvocation conversionInvocation = next.getConversionInvocation(); |
384 final GuardedInvocation conversionInvocation = next.getConversionInvocation(); |
385 conversionInvocation.assertType(type); |
|
386 last = conversionInvocation.compose(last); |
385 last = conversionInvocation.compose(last); |
387 } |
386 } |
388 } |
387 } |
389 if(last == identity) { |
388 if(last == identity) { |
390 return IDENTITY_CONVERSION; |
389 return IDENTITY_CONVERSION; |