public boolean restore_state(final InputObjectState objectState, final int ot) { final boolean result = super.restore_state(objectState, ot); if (result) { try { final long oldtime = objectState.unpackLong(); lastActiveTime = new Date(oldtime); } catch (java.io.IOException ex) { lastActiveTime = new Date(); } } return result; }
public boolean restore_state (InputObjectState objectState, int ot) { // do the other stuff boolean result = super.restore_state(objectState,ot); if (result) { try { long oldtime = objectState.unpackLong(); _lastActiveTime = new Date(oldtime); } catch (java.io.IOException ex) { // can assume the assumptionTime is missing - make it now _lastActiveTime = new Date(); } } return result; }
public boolean restore_state (InputObjectState objectState, int ot) { // do the other stuff boolean result = super.restore_state(objectState,ot); if (result) { try { long oldtime = objectState.unpackLong(); _lastActiveTime = new Date(oldtime); } catch (java.io.IOException ex) { // can assume the assumptionTime is missing - make it now _lastActiveTime = new Date(); } } return result; }