synchronized boolean updateLogicalFiles(DFUWorkunit wu) { if (wu != null && info.getID().equals(wu.getID()) && (EqualsUtil.hasChanged(info.getSourceLogicalName(), wu.getSourceLogicalName()) || EqualsUtil.hasChanged(info.getDestLogicalName(), wu.getDestLogicalName()))) { info = wu; setChanged(); return true; } return false; }
synchronized boolean updateState(DFUWorkunit wu) { if (wu != null && info.getID().equals(wu.getID()) && EqualsUtil.hasChanged(info.getState(), wu.getState())) { info.setState(wu.getState()); setChanged(); return true; } return false; }