parquet-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jul...@apache.org
Subject incubator-parquet-mr git commit: PARQUET-174: Replaces AssertionError constructor introduced in Java7
Date Thu, 29 Jan 2015 00:07:59 GMT
Repository: incubator-parquet-mr
Updated Branches:
  refs/heads/master 4bf9be34a -> 0751f97bf


PARQUET-174: Replaces AssertionError constructor introduced in Java7

AssertionError(String, Throwable) was introduced in Java7. Replacing it with AssertionError(String)
+ initCause(Throwable)

Author: Laurent Goujon <laurentgo@users.noreply.github.com>

Closes #101 from laurentgo/fix-java7ism and squashes the following commits:

c00fb7c [Laurent Goujon] Replaces AssertionError constructor introduced in Java7


Project: http://git-wip-us.apache.org/repos/asf/incubator-parquet-mr/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-parquet-mr/commit/0751f97b
Tree: http://git-wip-us.apache.org/repos/asf/incubator-parquet-mr/tree/0751f97b
Diff: http://git-wip-us.apache.org/repos/asf/incubator-parquet-mr/diff/0751f97b

Branch: refs/heads/master
Commit: 0751f97bf6677c3d55aa71542d572dc8fcb9e79a
Parents: 4bf9be3
Author: Laurent Goujon <laurentgo@users.noreply.github.com>
Authored: Wed Jan 28 16:07:48 2015 -0800
Committer: julien <julien@twitter.com>
Committed: Wed Jan 28 16:07:48 2015 -0800

----------------------------------------------------------------------
 .../parquet/format/converter/TestParquetMetadataConverter.java     | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-parquet-mr/blob/0751f97b/parquet-hadoop/src/test/java/parquet/format/converter/TestParquetMetadataConverter.java
----------------------------------------------------------------------
diff --git a/parquet-hadoop/src/test/java/parquet/format/converter/TestParquetMetadataConverter.java
b/parquet-hadoop/src/test/java/parquet/format/converter/TestParquetMetadataConverter.java
index 367f5d3..4eb7fb1 100644
--- a/parquet-hadoop/src/test/java/parquet/format/converter/TestParquetMetadataConverter.java
+++ b/parquet-hadoop/src/test/java/parquet/format/converter/TestParquetMetadataConverter.java
@@ -244,7 +244,7 @@ public class TestParquetMetadataConverter {
       try {
         verifyAllFilters(metadata(rgs), splitSize);
       } catch (AssertionError e) {
-	  throw new AssertionError("fail verifyAllFilters(metadata(" + Arrays.toString(rgs) + "),
" + splitSize + ")", e);
+	  throw (AssertionError) new AssertionError("fail verifyAllFilters(metadata(" + Arrays.toString(rgs)
+ "), " + splitSize + ")").initCause(e);
       }
     }
   }


Mime
View raw message