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.
1 parent ea0df1a commit aab7003Copy full SHA for aab7003
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