Repository: beam Updated Branches: refs/heads/master 6e8d8d657 -> 88ec00860
readAvros should't have proto Message upper bound Project: http://git-wip-us.apache.org/repos/asf/beam/repo Commit: http://git-wip-us.apache.org/repos/asf/beam/commit/de1adefd Tree: http://git-wip-us.apache.org/repos/asf/beam/tree/de1adefd Diff: http://git-wip-us.apache.org/repos/asf/beam/diff/de1adefd Branch: refs/heads/master Commit: de1adefda958ae152eae4b7b94b3b78563e130aa Parents: 6e8d8d6 Author: Neville Li <neville....@gmail.com> Authored: Mon May 15 14:55:09 2017 -0400 Committer: GitHub <nore...@github.com> Committed: Mon May 15 14:55:09 2017 -0400 ---------------------------------------------------------------------- .../src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/beam/blob/de1adefd/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java ---------------------------------------------------------------------- diff --git a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java index bdc2752e..e293b95 100644 --- a/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java +++ b/sdks/java/io/google-cloud-platform/src/main/java/org/apache/beam/sdk/io/gcp/pubsub/PubsubIO.java @@ -487,7 +487,7 @@ public class PubsubIO { * Returns A {@link PTransform} that continuously reads binary encoded Avro messages of the * given type from a Google Cloud Pub/Sub stream. */ - public static <T extends Message> Read<T> readAvros(Class<T> clazz) { + public static <T> Read<T> readAvros(Class<T> clazz) { // TODO: Stop using AvroCoder and instead parse the payload directly. // We should not be relying on the fact that AvroCoder's wire format is identical to // the Avro wire format, as the wire format is not part of a coder's API.