summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorArtur Signell <artur.signell@itmill.com>2009-12-29 07:20:02 +0000
committerArtur Signell <artur.signell@itmill.com>2009-12-29 07:20:02 +0000
commit0b4d8a15ddcfa075212f5b0f4602b90d6d8351fa (patch)
tree438105c0d0247a6a2fa13201768cc96bd8345dd1
parent7b352b1386a87b2d4faa6faf42fac70c5e854004 (diff)
downloadvaadin-framework-0b4d8a15ddcfa075212f5b0f4602b90d6d8351fa.tar.gz
vaadin-framework-0b4d8a15ddcfa075212f5b0f4602b90d6d8351fa.zip
Fixed compilation errors due to added generics
svn changeset:10562/svn branch:6.3
-rw-r--r--src/com/vaadin/terminal/CompositeErrorMessage.java9
1 files changed, 5 insertions, 4 deletions
diff --git a/src/com/vaadin/terminal/CompositeErrorMessage.java b/src/com/vaadin/terminal/CompositeErrorMessage.java
index e2158c81ba..bd70008523 100644
--- a/src/com/vaadin/terminal/CompositeErrorMessage.java
+++ b/src/com/vaadin/terminal/CompositeErrorMessage.java
@@ -57,15 +57,16 @@ public class CompositeErrorMessage implements ErrorMessage, Serializable {
* Constructor for CompositeErrorMessage.
*
* @param errorMessages
- * the Collection of error messages that are listed togeter. At
+ * the Collection of error messages that are listed together. At
* least one message is required.
*/
- public CompositeErrorMessage(Collection<ErrorMessage> errorMessages) {
+ public CompositeErrorMessage(
+ Collection<? extends ErrorMessage> errorMessages) {
errors = new ArrayList<ErrorMessage>(errorMessages.size());
level = Integer.MIN_VALUE;
- for (final Iterator<ErrorMessage> i = errorMessages.iterator(); i
- .hasNext();) {
+ for (final Iterator<? extends ErrorMessage> i = errorMessages
+ .iterator(); i.hasNext();) {
addErrorMessage(i.next());
}