Skip to content

Commit

Permalink
Use Message instead of GeneratedMessageV3 (#1142)
Browse files Browse the repository at this point in the history
Fixes #1141
  • Loading branch information
vivekkothari authored Aug 2, 2024
1 parent 32cc065 commit f112c62
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package io.envoyproxy.pgv;

import com.google.protobuf.GeneratedMessageV3;
import com.google.protobuf.Message;

/**
* {@code RequiredValidation} implements PGV validation for required fields.
Expand All @@ -9,7 +9,7 @@ public final class RequiredValidation {
private RequiredValidation() {
}

public static void required(String field, GeneratedMessageV3 value) throws ValidationException {
public static void required(String field, Message value) throws ValidationException {
if (value == null) {
throw new ValidationException(field, "null", "is required");
}
Expand Down

0 comments on commit f112c62

Please sign in to comment.