aboutsummaryrefslogtreecommitdiffstats
path: root/server
diff options
context:
space:
mode:
authorArtur Signell <artur@vaadin.com>2015-05-15 23:05:27 +0300
committerMika Murtojarvi <mika@vaadin.com>2015-05-25 13:33:43 +0300
commit9d8eeef0e825824f69c5fac86bfa06c6f71bec02 (patch)
treea6726d7ebcf08dd0884ccfaa2e253a67c27cc869 /server
parente6ad86225db87ad04611ba71de4879bf200f0982 (diff)
downloadvaadin-framework-9d8eeef0e825824f69c5fac86bfa06c6f71bec02.tar.gz
vaadin-framework-9d8eeef0e825824f69c5fac86bfa06c6f71bec02.zip
Output parameters in alphabetic order to be deterministic (#17857)
Change-Id: I2c418cd0493d68af819ee60d475ba71a11e6b530
Diffstat (limited to 'server')
-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));
}