Tab police git-svn-id: https://svn.apache.org/repos/asf/commons/proper/dbutils/trunk@1645724 13f79535-47bb-0310-9956-ffa450edef68
Project: http://git-wip-us.apache.org/repos/asf/commons-dbutils/repo Commit: http://git-wip-us.apache.org/repos/asf/commons-dbutils/commit/4c584eec Tree: http://git-wip-us.apache.org/repos/asf/commons-dbutils/tree/4c584eec Diff: http://git-wip-us.apache.org/repos/asf/commons-dbutils/diff/4c584eec Branch: refs/heads/master Commit: 4c584eec41a08981ba008b8de3279ea38a889a30 Parents: a36aeed Author: Sebastian Bazley <[email protected]> Authored: Mon Dec 15 19:07:09 2014 +0000 Committer: Sebastian Bazley <[email protected]> Committed: Mon Dec 15 19:07:09 2014 +0000 ---------------------------------------------------------------------- src/site/xdoc/building.xml | 4 ++-- src/site/xdoc/examples.xml | 3 +-- src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java | 2 +- 3 files changed, 4 insertions(+), 5 deletions(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/4c584eec/src/site/xdoc/building.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/building.xml b/src/site/xdoc/building.xml index 94eb1fc..084af2d 100644 --- a/src/site/xdoc/building.xml +++ b/src/site/xdoc/building.xml @@ -47,8 +47,8 @@ The result will be in "target/docs". </p> <p> - Further details can be found in the - <a href="http://commons.apache.org/building.html">commons build instructions</a>. + Further details can be found in the + <a href="http://commons.apache.org/building.html">commons build instructions</a>. </p> </section> <!-- ================================================== --> http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/4c584eec/src/site/xdoc/examples.xml ---------------------------------------------------------------------- diff --git a/src/site/xdoc/examples.xml b/src/site/xdoc/examples.xml index c60d8a4..704ba8b 100644 --- a/src/site/xdoc/examples.xml +++ b/src/site/xdoc/examples.xml @@ -93,8 +93,7 @@ Connection conn = ... // open a connection try{ Object[] result = run.query( conn, "SELECT * FROM Person WHERE name=?", h, "John Doe"); - // do something with the result - + // do something with the result } finally { // Use this helper method so we don't have to check for null DbUtils.close(conn); http://git-wip-us.apache.org/repos/asf/commons-dbutils/blob/4c584eec/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java ---------------------------------------------------------------------- diff --git a/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java b/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java index 85d14d5..84a5b0d 100644 --- a/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java +++ b/src/test/java/org/apache/commons/dbutils/QueryRunnerTest.java @@ -411,7 +411,7 @@ public class QueryRunnerTest { when(stmt.getGeneratedKeys()).thenReturn(results); when(results.next()).thenReturn(true).thenReturn(false); when(results.getObject(1)).thenReturn(1L); - + Long generatedKey = runner.insert("INSERT INTO blah(col1, col2) VALUES(?,?)", new ScalarHandler<Long>(), "unit", "test"); verify(stmt, times(1)).executeUpdate();
