From ed1ea2f6caf84b23e6bf3992297ab37ef214b4cf Mon Sep 17 00:00:00 2001 From: Robert Stupp Date: Wed, 23 Jun 2021 12:00:00 +0200 Subject: [PATCH] Style: add missing `@Override` (#18) --- core/src/main/java/org/projectnessie/cel/ProgGen.java | 1 + .../main/java/org/projectnessie/cel/common/debug/Debug.java | 1 + .../main/java/org/projectnessie/cel/common/types/TypeT.java | 1 + .../java/org/projectnessie/cel/interpreter/Interpretable.java | 4 ++++ 4 files changed, 7 insertions(+) diff --git a/core/src/main/java/org/projectnessie/cel/ProgGen.java b/core/src/main/java/org/projectnessie/cel/ProgGen.java index dd919bdf..23bfcf91 100644 --- a/core/src/main/java/org/projectnessie/cel/ProgGen.java +++ b/core/src/main/java/org/projectnessie/cel/ProgGen.java @@ -30,6 +30,7 @@ final class ProgGen implements Program, Coster { } /** Eval implements the Program interface method. */ + @Override public EvalResult eval(Object input) { // The factory based Eval() differs from the standard evaluation model in that it generates a // new EvalState instance for each call to ensure that unique evaluations yield unique stateful diff --git a/core/src/main/java/org/projectnessie/cel/common/debug/Debug.java b/core/src/main/java/org/projectnessie/cel/common/debug/Debug.java index be0f7e14..7ff51e97 100644 --- a/core/src/main/java/org/projectnessie/cel/common/debug/Debug.java +++ b/core/src/main/java/org/projectnessie/cel/common/debug/Debug.java @@ -158,6 +158,7 @@ public interface Adorner { } static class EmptyDebugAdorner implements Adorner { + @Override public String getMetadata(Object e) { return ""; } diff --git a/core/src/main/java/org/projectnessie/cel/common/types/TypeT.java b/core/src/main/java/org/projectnessie/cel/common/types/TypeT.java index 1acc9919..3eced2fd 100644 --- a/core/src/main/java/org/projectnessie/cel/common/types/TypeT.java +++ b/core/src/main/java/org/projectnessie/cel/common/types/TypeT.java @@ -98,6 +98,7 @@ public Val convertToType(Type typeVal) { } /** Equal implements ref.Val.Equal. */ + @Override public Val equal(Val other) { if (TypeType != other.type()) { return noSuchOverload(this, "equal", other); diff --git a/core/src/main/java/org/projectnessie/cel/interpreter/Interpretable.java b/core/src/main/java/org/projectnessie/cel/interpreter/Interpretable.java index 581fca6e..0371c50f 100644 --- a/core/src/main/java/org/projectnessie/cel/interpreter/Interpretable.java +++ b/core/src/main/java/org/projectnessie/cel/interpreter/Interpretable.java @@ -93,15 +93,18 @@ interface InterpretableAttribute extends Interpretable, Qualifier, Attribute { * not copyable by default, so this is a capable that would need to be added to the * AttributeFactory or specifically to the underlying Attribute implementation. */ + @Override Attribute addQualifier(Qualifier qualifier); /** * Qualify replicates the Attribute.Qualify method to permit extension and interception of * object qualification. */ + @Override Object qualify(Activation vars, Object obj); /** Resolve returns the value of the Attribute given the current Activation. */ + @Override Object resolve(Activation act); } @@ -445,6 +448,7 @@ public Val eval(org.projectnessie.cel.interpreter.Activation ctx) { } /** Cost implements the Coster interface method. */ + @Override public Cost cost() { return calExhaustiveBinaryOpsCost(lhs, rhs); }