Here's the code. Variables names have changed:
if (true == object1.isSomethingValid()) { object2.setSomethingValid(true); } else { object2.setSomethingValid(false); }
Obviously, the code needs to be refactored to:
object2.setSomethingValid(object1.isSomethingValid());