Skip to content
Snippets Groups Projects
Commit b54aa10f authored by OZGCloud's avatar OZGCloud
Browse files

OZG-6990 extend grpc util: ensure backward compatibility

parent c7649861
No related branches found
No related tags found
No related merge requests found
...@@ -85,6 +85,14 @@ public class GrpcUtil { ...@@ -85,6 +85,14 @@ public class GrpcUtil {
return Optional.ofNullable(headers.get(key)).map(GrpcUtil::byteToString); return Optional.ofNullable(headers.get(key)).map(GrpcUtil::byteToString);
} }
/**
* @deprecated since 4.6.0, use {@link #getList(String, Metadata)} instead
*/
@Deprecated(since = "4.6.0", forRemoval = true)
public static List<String> getCollection(String key, Metadata headers) {
return getList(key, headers);
}
public static List<String> getList(String key, Metadata headers) { public static List<String> getList(String key, Metadata headers) {
return getList(createKeyOf(key), headers); return getList(createKeyOf(key), headers);
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment