Fix GeneratedMessageV3 warnings.
This commit is contained in:
parent
7c7534413a
commit
009e491bd7
@ -866,6 +866,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage
|
||||
|
||||
/** Check if a singular extension is present. */
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public final <Type> boolean hasExtension(final ExtensionLite<MessageType, Type> extensionLite) {
|
||||
Extension<MessageType, Type> extension = checkNotLite(extensionLite);
|
||||
|
||||
@ -875,6 +876,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage
|
||||
|
||||
/** Get the number of elements in a repeated extension. */
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public final <Type> int getExtensionCount(
|
||||
final ExtensionLite<MessageType, List<Type>> extensionLite) {
|
||||
Extension<MessageType, List<Type>> extension = checkNotLite(extensionLite);
|
||||
@ -2219,6 +2221,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object get(GeneratedMessageV3 message) {
|
||||
List result = new ArrayList();
|
||||
for (int i = 0; i < getRepeatedCount(message); i++) {
|
||||
@ -2228,6 +2231,7 @@ public abstract class GeneratedMessageV3 extends AbstractMessage
|
||||
}
|
||||
|
||||
@Override
|
||||
@SuppressWarnings("unchecked")
|
||||
public Object get(Builder builder) {
|
||||
List result = new ArrayList();
|
||||
for (int i = 0; i < getRepeatedCount(builder); i++) {
|
||||
|
Loading…
Reference in New Issue
Block a user