Author: akazakov
Date: 2012-08-16 18:38:16 -0400 (Thu, 16 Aug 2012)
New Revision: 43078
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/TempMarkerManager.java
Log:
https://issues.jboss.org/browse/JBIDE-10611 As-you-type CDI validation
Modified:
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/TempMarkerManager.java
===================================================================
---
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/TempMarkerManager.java 2012-08-16
18:52:09 UTC (rev 43077)
+++
trunk/common/plugins/org.jboss.tools.common.validation/src/org/jboss/tools/common/validation/TempMarkerManager.java 2012-08-16
22:38:16 UTC (rev 43078)
@@ -210,7 +210,10 @@
public static final String CLEAN_ALL_ANNOTATIONS_ATTRIBUTE =
"org.jboss.tools.common.validation.cleanAllAnnotaions";
private static IMessage addMesssage(IValidator validator, boolean cleanAllAnnotaions,
IReporter reporter, int offset, int length, IResource target, int lineNumber, int
severity, String textMessage, Object[] messageArguments, String bundleName) {
- Message message = new ValidationMessage(severity,
messageArguments!=null?MessageFormat.format(textMessage, messageArguments):textMessage,
target);
+ if(messageArguments==null) {
+ messageArguments = new String[0];
+ }
+ Message message = new ValidationMessage(severity, MessageFormat.format(textMessage,
messageArguments), target);
message.setOffset(offset);
message.setLength(length);
message.setLineNo(lineNumber);