/** * Updates a strong reference handling {@code null} values properly. This * is only meant to be used internally for {@link Property} setter methods * with {@code strongRef=true}. * * @param thiz the owner of the property. * @param before the previous value for the property. If not {@code null} * and not equal to {@code after} {@link #removeStrongRef(Object)} * will be called on this value. * @param after the new value for the property. If not {@code null} * and not equal to {@code after} {@link #addStrongRef(Object)} * will be called on this value. */ protected static void updateStrongRef(ObjCObject o, Object before, Object after) { o.updateStrongRef(before, after); } }
/** * Updates a strong reference handling {@code null} values properly. This * is only meant to be used internally for {@link Property} setter methods * with {@code strongRef=true}. * * @param thiz the owner of the property. * @param before the previous value for the property. If not {@code null} * and not equal to {@code after} {@link #removeStrongRef(Object)} * will be called on this value. * @param after the new value for the property. If not {@code null} * and not equal to {@code after} {@link #addStrongRef(Object)} * will be called on this value. */ protected static void updateStrongRef(ObjCObject o, Object before, Object after) { o.updateStrongRef(before, after); } }