mirror of
https://github.com/google/nomulus.git
synced 2025-05-13 16:07:15 +02:00
Fix Result.Code enum values to use UPPER_CAMEL naming
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=133324460
This commit is contained in:
parent
823bdc721f
commit
c6e9779af1
38 changed files with 126 additions and 125 deletions
|
@ -15,8 +15,8 @@
|
|||
package google.registry.flows.poll;
|
||||
|
||||
import static google.registry.flows.poll.PollFlowUtils.getPollMessagesQuery;
|
||||
import static google.registry.model.eppoutput.Result.Code.SuccessWithAckMessage;
|
||||
import static google.registry.model.eppoutput.Result.Code.SuccessWithNoMessages;
|
||||
import static google.registry.model.eppoutput.Result.Code.SUCCESS_WITH_ACK_MESSAGE;
|
||||
import static google.registry.model.eppoutput.Result.Code.SUCCESS_WITH_NO_MESSAGES;
|
||||
import static google.registry.util.CollectionUtils.forceEmptyToNull;
|
||||
|
||||
import com.googlecode.objectify.Key;
|
||||
|
@ -49,10 +49,10 @@ public class PollRequestFlow extends LoggedInFlow {
|
|||
// Return the oldest message from the queue.
|
||||
PollMessage pollMessage = getPollMessagesQuery(clientId, now).first().now();
|
||||
if (pollMessage == null) {
|
||||
return createOutput(SuccessWithNoMessages);
|
||||
return createOutput(SUCCESS_WITH_NO_MESSAGES);
|
||||
}
|
||||
return createOutput(
|
||||
SuccessWithAckMessage,
|
||||
SUCCESS_WITH_ACK_MESSAGE,
|
||||
forceEmptyToNull(pollMessage.getResponseData()),
|
||||
forceEmptyToNull(pollMessage.getResponseExtensions()),
|
||||
MessageQueueInfo.create(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue