229 @Override
230 public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest) throws Exception {
231 return linkerServices.getGuardedInvocation(linkRequest);
232 }
233
234 @Override
235 public Comparison compareConversion(final Class<?> sourceType, final Class<?> targetType1, final Class<?> targetType2) {
236 if (sourceType == ConsString.class) {
237 if (String.class == targetType1 || CharSequence.class == targetType1) {
238 return Comparison.TYPE_1_BETTER;
239 }
240
241 if (String.class == targetType2 || CharSequence.class == targetType2) {
242 return Comparison.TYPE_2_BETTER;
243 }
244 }
245 return linkerServices.compareConversion(sourceType, targetType1, targetType2);
246 }
247
248 @Override
249 public MethodHandle filterInternalObjects(MethodHandle target) {
250 return linkerServices.filterInternalObjects(target);
251 }
252 }
253 }
|
229 @Override
230 public GuardedInvocation getGuardedInvocation(final LinkRequest linkRequest) throws Exception {
231 return linkerServices.getGuardedInvocation(linkRequest);
232 }
233
234 @Override
235 public Comparison compareConversion(final Class<?> sourceType, final Class<?> targetType1, final Class<?> targetType2) {
236 if (sourceType == ConsString.class) {
237 if (String.class == targetType1 || CharSequence.class == targetType1) {
238 return Comparison.TYPE_1_BETTER;
239 }
240
241 if (String.class == targetType2 || CharSequence.class == targetType2) {
242 return Comparison.TYPE_2_BETTER;
243 }
244 }
245 return linkerServices.compareConversion(sourceType, targetType1, targetType2);
246 }
247
248 @Override
249 public MethodHandle filterInternalObjects(final MethodHandle target) {
250 return linkerServices.filterInternalObjects(target);
251 }
252 }
253 }
|