Skip to content

Commit

Permalink
Style: add missing @Override (#18)
Browse files Browse the repository at this point in the history
  • Loading branch information
snazy authored Jun 23, 2021
1 parent 8718db8 commit ed1ea2f
Show file tree
Hide file tree
Showing 4 changed files with 7 additions and 0 deletions.
1 change: 1 addition & 0 deletions core/src/main/java/org/projectnessie/cel/ProgGen.java
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -158,6 +158,7 @@ public interface Adorner {
}

static class EmptyDebugAdorner implements Adorner {
@Override
public String getMetadata(Object e) {
return "";
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}

Expand Down Expand Up @@ -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);
}
Expand Down

0 comments on commit ed1ea2f

Please sign in to comment.