Skip to content

Commit 7fc3198

Browse files
Remove breaking abstract isUTC() getter from Rounding.java.
Signed-off-by: Finn Carroll <[email protected]>
1 parent d9e82cb commit 7fc3198

File tree

1 file changed

+8
-6
lines changed

1 file changed

+8
-6
lines changed

server/src/main/java/org/opensearch/common/Rounding.java

+8-6
Original file line numberDiff line numberDiff line change
@@ -275,6 +275,14 @@ public DateTimeUnit unit() {
275275
return null;
276276
}
277277

278+
/**
279+
* Helper function for checking if the time zone requested for date histogram
280+
* aggregation is utc or not
281+
*/
282+
public boolean isUTC() {
283+
throw new UnsupportedOperationException();
284+
}
285+
278286
/**
279287
* A strategy for rounding milliseconds since epoch.
280288
*
@@ -1429,10 +1437,4 @@ public static OptionalLong getInterval(Rounding rounding) {
14291437

14301438
return OptionalLong.of(interval);
14311439
}
1432-
1433-
/**
1434-
* Helper function for checking if the time zone requested for date histogram
1435-
* aggregation is utc or not
1436-
*/
1437-
public abstract boolean isUTC();
14381440
}

0 commit comments

Comments
 (0)