W3C home > Mailing lists > Public > www-validator-cvs@w3.org > October 2009

2006/unicorn/src/org/w3c/unicorn UnicornCall.java,1.32,1.33

From: Thomas Gambet via cvs-syncmail <cvsmail@w3.org>
Date: Mon, 05 Oct 2009 14:25:44 +0000
To: www-validator-cvs@w3.org
Message-Id: <E1MuoVU-0003vA-7G@lionel-hutz.w3.org>
Update of /sources/public/2006/unicorn/src/org/w3c/unicorn
In directory hutz:/tmp/cvs-serv14938/src/org/w3c/unicorn

Modified Files:
	UnicornCall.java 
Log Message:
simpler way to make the Message level enum

Index: UnicornCall.java
===================================================================
RCS file: /sources/public/2006/unicorn/src/org/w3c/unicorn/UnicornCall.java,v
retrieving revision 1.32
retrieving revision 1.33
diff -u -d -r1.32 -r1.33
--- UnicornCall.java	1 Oct 2009 14:33:28 -0000	1.32
+++ UnicornCall.java	5 Oct 2009 14:25:42 -0000	1.33
@@ -98,7 +98,7 @@
 		
 		MimeType aMimeType = inputParameter.getMimeType();
 		if (!aTask.getSupportedMimeTypes().contains(aMimeType.toString()))
-			throw new UnicornException(Message.Level.ERROR, "$message_unsupported_mime_type", null);
+			throw new UnicornException(Message.ERROR, "$message_unsupported_mime_type", null);
 		
 		doNode(inputParameter, aTask.getTree());
 	}
@@ -165,7 +165,7 @@
 			
 			//TODO: add warning if inputMethod has changed -> check behavior
 			if (aInputMethod.getMethod() != inputParameter.getInputMethod()) {
-				messages.add(new Message(Message.Level.WARNING, "\"" + aObserver.getName(sLang) + "\" $message_input_changed_1 " + inputParameter.getInputMethod().toString().toLowerCase() + " $message_input_changed_2", "$message_input_changed_long"));
+				messages.add(new Message(Message.WARNING, "\"" + aObserver.getName(sLang) + "\" $message_input_changed_1 " + inputParameter.getInputMethod().toString().toLowerCase() + " $message_input_changed_2", "$message_input_changed_long"));
 			}
 			
 			InputModule inputModule = createInputModule(aInputMethod, inputParameter.getInputModule());
Received on Monday, 5 October 2009 14:25:47 UTC

This archive was generated by hypermail 2.3.1 : Wednesday, 7 January 2015 15:17:39 UTC