Package com.google.gerrit.server.rules
Class IgnoreSelfApprovalRule
java.lang.Object
com.google.gerrit.server.rules.IgnoreSelfApprovalRule
- All Implemented Interfaces:
SubmitRule
Rule to require an approval from a user that did not upload the current patch set or block
submission.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic class
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionevaluate
(ChangeData cd) Returns aOptional
ofSubmitRecord
status for the change.
-
Constructor Details
-
IgnoreSelfApprovalRule
public IgnoreSelfApprovalRule()
-
-
Method Details
-
evaluate
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
-