We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents ea0df1a + aab7003 commit 0ac1c56Copy full SHA for 0ac1c56
jdbc/src/main/java/tech/ydb/jdbc/common/JdbcDriverVersion.java
@@ -43,9 +43,8 @@ private static class Holder {
43
int major = -1;
44
int minor = -1;
45
String version = "1.0.development";
46
- try {
+ try (InputStream in = Version.class.getResourceAsStream(PROPERTIES_PATH)) {
47
Properties prop = new Properties();
48
- InputStream in = Version.class.getResourceAsStream(PROPERTIES_PATH);
49
prop.load(in);
50
version = prop.getProperty("version");
51
} catch (IOException e) { }
0 commit comments