sqoop-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From cheol...@apache.org
Subject git commit: SQOOP-706 Sqoop won't compile on Java 7 due to new methods in ResultSet interface
Date Wed, 28 Nov 2012 21:12:52 GMT
Updated Branches:
  refs/heads/trunk 817195ebb -> b666fe1bb


SQOOP-706 Sqoop won't compile on Java 7 due to new methods in ResultSet
interface

(Jarek Jarcec Cecho via Cheolsoo Park)


Project: http://git-wip-us.apache.org/repos/asf/sqoop/repo
Commit: http://git-wip-us.apache.org/repos/asf/sqoop/commit/b666fe1b
Tree: http://git-wip-us.apache.org/repos/asf/sqoop/tree/b666fe1b
Diff: http://git-wip-us.apache.org/repos/asf/sqoop/diff/b666fe1b

Branch: refs/heads/trunk
Commit: b666fe1bb6ad37d298838afa5f4436f42d575e9c
Parents: 817195e
Author: Cheolsoo Park <cheolsoo@apache.org>
Authored: Wed Nov 28 13:11:51 2012 -0800
Committer: Cheolsoo Park <cheolsoo@apache.org>
Committed: Wed Nov 28 13:11:51 2012 -0800

----------------------------------------------------------------------
 .../com/cloudera/sqoop/testutil/MockResultSet.java |   16 +++++++++++++++
 1 files changed, 16 insertions(+), 0 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/sqoop/blob/b666fe1b/src/test/com/cloudera/sqoop/testutil/MockResultSet.java
----------------------------------------------------------------------
diff --git a/src/test/com/cloudera/sqoop/testutil/MockResultSet.java b/src/test/com/cloudera/sqoop/testutil/MockResultSet.java
index d7a2324..de7d3cb 100644
--- a/src/test/com/cloudera/sqoop/testutil/MockResultSet.java
+++ b/src/test/com/cloudera/sqoop/testutil/MockResultSet.java
@@ -884,6 +884,22 @@ public class MockResultSet implements ResultSet {
       throws SQLException {
   }
 
+  /* Commenting @override as this is addition in java 7 that is not available
+   * in Java 6
+  @Override
+   */
+  public <T> T getObject(int columnIndex, Class<T> type) throws SQLException
{
+    return null;
+  }
+
+  /* Commenting @override as this is addition in java 7 that is not available
+   * in Java 6
+  @Override
+   */
+  public <T> T getObject(String columnLabel, Class<T> type) throws SQLException{
+    return null;
+  }
+
   @Override
   public void updateNClob(int columnIndex, Reader reader, long length)
       throws SQLException {


Mime
View raw message