summaryrefslogtreecommitdiffstats
path: root/server/src/com/vaadin/ui/Flash.java
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-05-15 23:05:27 +0300
committerVaadin Code Review <review@vaadin.com>2015-05-18 06:37:12 +0000
commitc7392301d0c6afde429d7c6e66d3175f36ab5360 (patch)
tree548de6b19aa9f68cb8c9cb9fbd62d10662478fd2 /server/src/com/vaadin/ui/Flash.java
parentce0a3a11d8b68dceb9c833a187b80699ac5fef71 (diff)
downloadvaadin-framework-c7392301d0c6afde429d7c6e66d3175f36ab5360.tar.gz
vaadin-framework-c7392301d0c6afde429d7c6e66d3175f36ab5360.zip
Output parameters in alphabetic order to be deterministic (#17857)
Change-Id: I8fdb5404cca6e28080f8c4315bb1daa136313744
Diffstat (limited to 'server/src/com/vaadin/ui/Flash.java')
-rw-r--r--server/src/com/vaadin/ui/Flash.java9
1 files changed, 9 insertions, 0 deletions
diff --git a/server/src/com/vaadin/ui/Flash.java b/server/src/com/vaadin/ui/Flash.java
index 2d0f188b84..6e99d2fe35 100644
--- a/server/src/com/vaadin/ui/Flash.java
+++ b/server/src/com/vaadin/ui/Flash.java
@@ -15,6 +15,7 @@
*/
package com.vaadin.ui;
+import java.util.ArrayList;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
@@ -236,7 +237,15 @@ public class Flash extends AbstractEmbedded {
@Override
public void writeDesign(Element design, DesignContext designContext) {
super.writeDesign(design, designContext);
+
+ // Parameters, in alphabetic order
+ ArrayList<String> paramNames = new ArrayList<String>();
for (String param : getParameterNames()) {
+ paramNames.add(param);
+ }
+
+ Collections.sort(paramNames);
+ for (String param : paramNames) {
design.appendElement("parameter").attr("name", param)
.attr("value", getParameter(param));
}