/** {@inheritDoc} */ public void uninject() { final Field field = this.field; try { Class<?> fieldType = field.getType(); Object targetValue = target.getValue(); if (fieldType.isPrimitive()) { uninjectPrimitive(field, fieldType, targetValue); } else { field.set(targetValue, null); } } catch (Throwable throwable) { InjectorLogger.INSTANCE.uninjectFailed(throwable, field); } }
/** {@inheritDoc} */ public void uninject() { final Field field = this.field; try { Class<?> fieldType = field.getType(); Object targetValue = target.getValue(); if (fieldType.isPrimitive()) { uninjectPrimitive(field, fieldType, targetValue); } else { field.set(targetValue, null); } } catch (Throwable throwable) { InjectorLogger.INSTANCE.uninjectFailed(throwable, field); } }