- From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
- Date: Mon, 05 Oct 2009 14:25:44 +0000
- To: www-validator-cvs@w3.org
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn/output In directory hutz:/tmp/cvs-serv14938/src/org/w3c/unicorn/output Modified Files: MailOutputModule.java Log Message: simpler way to make the Message level enum Index: MailOutputModule.java =================================================================== RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/output/MailOutputModule.java,v retrieving revision 1.13 retrieving revision 1.14 diff -u -d -r1.13 -r1.14 --- MailOutputModule.java 5 Oct 2009 13:04:52 -0000 1.13 +++ MailOutputModule.java 5 Oct 2009 14:25:42 -0000 1.14 @@ -64,10 +64,10 @@ //mapOfStringObject.put("baseUri", "http://qa-dev.w3.org/unicorn/"); ArrayList<Message> messages = ((ArrayList<Message>) mapOfStringObject.get("messages")); - Message pendingMess = new Message(Message.Level.INFO, "$message_mail " + recipient); + Message pendingMess = new Message(Message.INFO, "$message_mail " + recipient); if (recipient == null) { - throw new UnicornException(new Message(Message.Level.ERROR, "$message_missing_email")); + throw new UnicornException(new Message(Message.ERROR, "$message_missing_email")); } else { messages.add(pendingMess); } @@ -90,7 +90,7 @@ ArrayList<Message> messages = ((ArrayList<Message>) mapOfStringObject.get("messages")); SimpleDateFormat dateFormat = new SimpleDateFormat("EEE, d MMM yyyy HH:mm:ss (Z)", new Locale(outputParameters.get("lang"))); - messages.add(new Message(Message.Level.INFO, "$message_mail_date " + dateFormat.format(new Date()))); + messages.add(new Message(Message.INFO, "$message_mail_date " + dateFormat.format(new Date()))); mapOfStringObject.put("baseUri", Property.get("UNICORN_URL"));
Received on Monday, 5 October 2009 14:25:47 UTC