From 6147e2ba6ab561b7d73f319a7d999c1ca54784d6 Mon Sep 17 00:00:00 2001 From: Zachary Tong Date: Thu, 27 Apr 2017 17:16:30 -0400 Subject: [PATCH] Remove now-unnecessary cast Original commit: elastic/x-pack-elasticsearch@fcbbe5a919fbb38ea47491e97c66e877d6578505 --- .../org/elasticsearch/xpack/ml/datafeed/DatafeedConfig.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedConfig.java b/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedConfig.java index cc63528649e..65c5d342ecd 100644 --- a/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedConfig.java +++ b/plugin/src/main/java/org/elasticsearch/xpack/ml/datafeed/DatafeedConfig.java @@ -248,7 +248,7 @@ public class DatafeedConfig extends AbstractDiffable implements if (dateHistogram.dateHistogramInterval() != null) { return validateAndGetCalendarInterval(dateHistogram.dateHistogramInterval().toString()); } else { - return (long) dateHistogram.interval(); + return dateHistogram.interval(); } }