Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Style: add missing @Override #18

Merged
merged 1 commit into from
Jun 23, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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