src/main/java/pityoulish/msgboard/MixedMessageBoardImpl.java
public Message putMessage(String originator, String text)
  {
    String problem = sanityChecker.checkOriginator(originator);
    if (problem == null)
       problem = sanityChecker.checkText(text);
    if (problem != null)
       throw new IllegalArgumentException(problem);

    MTMsg msg = new MTMsg
      (originator, boardTimer.getTimestamp(), text, MT.USER);

    addMessageToBoard(msg);

    return msg;
  }
// non-javadoc, see interface UserMessageBoard
non-javadoc, see interface UserMessageBoard
non - javadoc see interface UserMessageBoard
public Message putMessage(String originator, String text)
  {
    String problem = sanityChecker.checkOriginator(originator);
    if (problem == null)
       problem = sanityChecker.checkText(text);
    if (problem != null)
       throw new IllegalArgumentException(problem);
    MTMsg msg = new MTMsg
      (originator, boardTimer.getTimestamp(), text, MT.USER);
    addMessageToBoard(msg);
    return msg;
  }
public Message putMessage ( String originator , String text ) { String problem = sanityChecker . checkOriginator ( originator ) ; if ( problem == null ) problem = sanityChecker . checkText ( text ) ; if ( problem != null ) throw new IllegalArgumentException ( problem ) ; MTMsg msg = new MTMsg ( originator , boardTimer . getTimestamp ( ) , text , MT . USER ) ; addMessageToBoard ( msg ) ; return msg ; }
non-javadoc, see interface UserMessageBoard
non - javadoc see interface UserMessageBoard