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 722e25b commit fa56e7fCopy full SHA for fa56e7f
sdk1/src/main/java/com/amazonaws/services/dynamodbv2/datamodeling/internal/Utils.java
@@ -57,7 +57,8 @@ public static <V> V checkNotNull(final V ref, final String errMsg) {
57
public static String loadVersion() {
58
try {
59
final Properties properties = new Properties();
60
- properties.load(ClassLoader.getSystemResourceAsStream("project.properties"));
+ final ClassLoader loader = Utils.class.getClassLoader();
61
+ properties.load(loader.getResourceAsStream("project.properties"));
62
return properties.getProperty("version");
63
} catch (final IOException ex) {
64
return "unknown";
0 commit comments