/** * Returns the interface implemented by the given proxy. */ private static Class<?> getInterface(final Object proxy) { for (final Class<?> type : proxy.getClass().getInterfaces()) { if (!isIgnoredInterface(type)) { return type; } } throw new AssertionError(proxy); // Should not happen. }
/** * Returns the interface implemented by the given proxy. */ private static Class<?> getInterface(final Object proxy) { for (final Class<?> type : proxy.getClass().getInterfaces()) { if (!isIgnoredInterface(type)) { return type; } } throw new AssertionError(proxy); // Should not happen. }
if (NilObjectHandler.isIgnoredInterface(type)) { throw new IllegalArgumentException(Errors.format(Errors.Keys.IllegalArgumentValue_2, "type", type));
if (NilObjectHandler.isIgnoredInterface(type)) { throw new IllegalArgumentException(Errors.format(Errors.Keys.IllegalArgumentValue_2, "type", type));
if (NilObjectHandler.isIgnoredInterface(type)) { throw new IllegalArgumentException(Errors.format(Errors.Keys.IllegalArgumentValue_2, "type", type));
if (NilObjectHandler.isIgnoredInterface(type)) { throw new IllegalArgumentException(Errors.format(Errors.Keys.IllegalArgumentValue_2, "type", type));