public AssertableDiagnostics diagnose() { if (!validatorCalled) throw new IllegalStateException("You have to call validator() before you call diagnose()"); validatorCalled = false; AssertableDiagnostics ad = new AssertableDiagnostics((Diagnostic) validator.setMessageAcceptor(validator) .getState().chain); validator.setMessageAcceptor(validator).getState().chain = new BasicDiagnostic(); return ad; }
public AssertableDiagnostics diagnose() { if (!validatorCalled) throw new IllegalStateException("You have to call validator() before you call diagnose()"); validatorCalled = false; AssertableDiagnostics ad = new AssertableDiagnostics((Diagnostic) validator.setMessageAcceptor(validator) .getState().chain); validator.setMessageAcceptor(validator).getState().chain = new BasicDiagnostic(); return ad; }
public AssertableDiagnostics diagnose() { if (!validatorCalled) throw new IllegalStateException("You have to call validator() before you call diagnose()"); validatorCalled = false; AssertableDiagnostics ad = new AssertableDiagnostics((Diagnostic) validator.setMessageAcceptor(validator) .getState().chain); validator.setMessageAcceptor(validator).getState().chain = new BasicDiagnostic(); return ad; }
public T validator() { State s = validator.setMessageAcceptor(validator).getState(); if (s.chain == null) s.chain = new BasicDiagnostic(); validatorCalled = true; return validator; }
public T validator() { State s = validator.setMessageAcceptor(validator).getState(); if (s.chain == null) s.chain = new BasicDiagnostic(); validatorCalled = true; return validator; }
public T validator() { State s = validator.setMessageAcceptor(validator).getState(); if (s.chain == null) s.chain = new BasicDiagnostic(); validatorCalled = true; return validator; }