From 02d1350778c5f1b666af4720a271371dda4887dd Mon Sep 17 00:00:00 2001 From: Dimitrios Athanasiou Date: Wed, 19 Apr 2017 13:27:48 +0100 Subject: [PATCH] [TEST] Change the serialization order back to keep tests happy Original commit: elastic/x-pack-elasticsearch@2b8369739591f561194947726cf79c3e35bec86e --- .../org/elasticsearch/xpack/ml/job/config/DetectionRule.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/config/DetectionRule.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/config/DetectionRule.java index d0ad501aa5a..cc7593bb351 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/job/config/DetectionRule.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/job/config/DetectionRule.java @@ -100,13 +100,13 @@ public class DetectionRule extends ToXContentToBytes implements Writeable { builder.startObject(); builder.field(RULE_ACTION_FIELD.getPreferredName(), ruleAction); builder.field(CONDITIONS_CONNECTIVE_FIELD.getPreferredName(), conditionsConnective); + builder.field(RULE_CONDITIONS_FIELD.getPreferredName(), ruleConditions); if (targetFieldName != null) { builder.field(TARGET_FIELD_NAME_FIELD.getPreferredName(), targetFieldName); } if (targetFieldValue != null) { builder.field(TARGET_FIELD_VALUE_FIELD.getPreferredName(), targetFieldValue); } - builder.field(RULE_CONDITIONS_FIELD.getPreferredName(), ruleConditions); builder.endObject(); return builder; }