beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject [17/50] [abbrv] beam git commit: readAvros should't have proto Message upper bound
Date Thu, 18 May 2017 20:08:17 GMT
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/gearpump-runner
Commit: de1adefda958ae152eae4b7b94b3b78563e130aa
Parents: 6e8d8d6
Author: Neville Li <neville.lyh@gmail.com>
Authored: Mon May 15 14:55:09 2017 -0400
Committer: GitHub <noreply@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.


Mime
View raw message