Package com.google.gerrit.server.rules
Class IgnoreSelfApprovalRule
- java.lang.Object
-
- com.google.gerrit.server.rules.IgnoreSelfApprovalRule
-
- All Implemented Interfaces:
SubmitRule
public class IgnoreSelfApprovalRule extends Object implements SubmitRule
Rule to require an approval from a user that did not upload the current patch set or block submission.
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
IgnoreSelfApprovalRule.IgnoreSelfApprovalRuleModule
-
Constructor Summary
Constructors Constructor Description IgnoreSelfApprovalRule()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description Optional<SubmitRecord>
evaluate(ChangeData cd)
Returns aOptional
ofSubmitRecord
status for the change.
-
-
-
Method Detail
-
evaluate
public Optional<SubmitRecord> evaluate(ChangeData cd)
Description copied from interface:SubmitRule
Returns aOptional
ofSubmitRecord
status for the change.Optional#empty()
if the SubmitRule was a no-op.- Specified by:
evaluate
in interfaceSubmitRule
-
-