From cdf8678f33f8ea49e5291fce4a4651a24edaf19c Mon Sep 17 00:00:00 2001 From: rubenada Date: Fri, 17 Jul 2020 10:00:52 +0200 Subject: [PATCH] [CALCITE-4127] Remove final from AbstractRelNode#getRelTypeName --- core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java b/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java index b55c90dd3c16..7a528d5a6ddc 100644 --- a/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java +++ b/core/src/main/java/org/apache/calcite/rel/AbstractRelNode.java @@ -179,7 +179,8 @@ public void register(RelOptPlanner planner) { Util.discard(planner); } - public final String getRelTypeName() { + // It is not recommended to override this method, but sub-classes can do it at their own risk. + public String getRelTypeName() { String cn = getClass().getName(); int i = cn.length(); while (--i >= 0) {