Mercurial > hg > monetdb-java
diff src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java.in @ 180:fdf4c888d5b7
Small code and layout improvements
author | Martin van Dinther <martin.van.dinther@monetdbsolutions.com> |
---|---|
date | Thu, 05 Oct 2017 17:01:17 +0200 (2017-10-05) |
parents | 8700d9ef2ace |
children | 1296dbcc4958 |
line wrap: on
line diff
--- a/src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java.in +++ b/src/main/java/nl/cwi/monetdb/jdbc/MonetDriver.java.in @@ -144,7 +144,7 @@ final public class MonetDriver implement int uri_port = uri.getPort(); if (uri_port > 0) - info.put("port", "" + uri_port); + info.put("port", Integer.toString(uri_port)); // check the database String uri_path = uri.getPath(); @@ -404,7 +404,7 @@ final public class MonetDriver implement * @return the version string */ public static String getDriverVersion() { - return "" + DRIVERMAJOR + "." + DRIVERMINOR + " (" + DRIVERVERSIONSUFFIX + ")"; + return DRIVERMAJOR + "." + DRIVERMINOR + " (" + DRIVERVERSIONSUFFIX + ")"; } public static int getDriverMajorVersion() {