cayenne-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ntimof...@apache.org
Subject [4/5] cayenne git commit: Cleanup tests
Date Tue, 31 Jul 2018 12:08:19 GMT
Cleanup tests


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

Branch: refs/heads/master
Commit: d7acbe82926ca4b01aed2b331fcedfb20817c116
Parents: 06ab9ed
Author: Nikita Timofeev <stariy95@gmail.com>
Authored: Tue Jul 31 15:06:11 2018 +0300
Committer: Nikita Timofeev <stariy95@gmail.com>
Committed: Tue Jul 31 15:06:11 2018 +0300

----------------------------------------------------------------------
 .../src/main/java/org/apache/cayenne/test/jdbc/DBHelper.java     | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/cayenne/blob/d7acbe82/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/jdbc/DBHelper.java
----------------------------------------------------------------------
diff --git a/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/jdbc/DBHelper.java
b/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/jdbc/DBHelper.java
index ec080c0..319c75f 100644
--- a/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/jdbc/DBHelper.java
+++ b/build-tools/cayenne-test-utilities/src/main/java/org/apache/cayenne/test/jdbc/DBHelper.java
@@ -141,13 +141,13 @@ public class DBHelper {
 		}
 		sql.append(")");
 
-		try (Connection c = getConnection();) {
+		try (Connection c = getConnection()) {
 
 			String sqlString = sql.toString();
 			UtilityLogger.log(sqlString);
 
 			ParameterMetaData parameters = null;
-			try (PreparedStatement st = c.prepareStatement(sqlString);) {
+			try (PreparedStatement st = c.prepareStatement(sqlString)) {
 				for (int i = 0; i < values.length; i++) {
 
 					if (values[i] == null) {


Mime
View raw message