xichen01 opened a new pull request, #6775:
URL: https://github.com/apache/ozone/pull/6775
## What changes were proposed in this pull request?
`ContainerProtos.Type` is not initialized in a for loop with an id of type
int when initializing `ContainerProtos.Type`.
```java
for (int i = 0; i < numEnumEntries; i++) {
//...
ContainerProtos.Type.forNumber(i + 1)
//...
}
```
This initialization relies on the fact that the proto ids of the
`ContainerProtos.Type` must be consecutive
## What is the link to the Apache JIRA
https://issues.apache.org/jira/browse/HDDS-10967
(Please replace this section with the link to the Apache JIRA)
## How was this patch tested?
existing test.
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]