beam-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From k...@apache.org
Subject [1/3] incubator-beam git commit: Minor checkArgument style fix
Date Thu, 12 May 2016 01:33:25 GMT
Repository: incubator-beam
Updated Branches:
  refs/heads/master ca01b6e60 -> 6ec9e9680


Minor checkArgument style fix


Project: http://git-wip-us.apache.org/repos/asf/incubator-beam/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-beam/commit/59a12902
Tree: http://git-wip-us.apache.org/repos/asf/incubator-beam/tree/59a12902
Diff: http://git-wip-us.apache.org/repos/asf/incubator-beam/diff/59a12902

Branch: refs/heads/master
Commit: 59a12902e37c7ee9cc9621a690536202d73b347c
Parents: 49689fc
Author: Thomas Groh <tgroh@google.com>
Authored: Mon May 9 15:47:27 2016 -0700
Committer: Thomas Groh <tgroh@google.com>
Committed: Wed May 11 13:01:26 2016 -0700

----------------------------------------------------------------------
 .../beam/runners/direct/InProcessSideInputContainer.java      | 7 ++++---
 1 file changed, 4 insertions(+), 3 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-beam/blob/59a12902/runners/direct-java/src/main/java/org/apache/beam/runners/direct/InProcessSideInputContainer.java
----------------------------------------------------------------------
diff --git a/runners/direct-java/src/main/java/org/apache/beam/runners/direct/InProcessSideInputContainer.java
b/runners/direct-java/src/main/java/org/apache/beam/runners/direct/InProcessSideInputContainer.java
index 96a9ad2..f53f590 100644
--- a/runners/direct-java/src/main/java/org/apache/beam/runners/direct/InProcessSideInputContainer.java
+++ b/runners/direct-java/src/main/java/org/apache/beam/runners/direct/InProcessSideInputContainer.java
@@ -235,11 +235,12 @@ class InProcessSideInputContainer {
     @Override
     @Nullable
     public <T> T get(final PCollectionView<T> view, final BoundedWindow window)
{
-      checkArgument(
-          readerViews.contains(view), "calling get(PCollectionView) with unknown view: "
+ view);
+      checkArgument(readerViews.contains(view),
+          "call to get(PCollectionView) with unknown view: %s",
+          view);
       checkArgument(
           isReady(view, window),
-          "calling get() on a PCollectionView %s that is not ready in window %s",
+          "calling get() on PCollectionView %s that is not ready in window %s",
           view,
           window);
       // Safe covariant cast


Mime
View raw message