in src/main/java/software/amazon/encryption/s3/internal/ApiNameVersion.java [33:50]
private static String apiVersion() {
try {
final Properties properties = new Properties();
final ClassLoader loader = ApiNameVersion.class.getClassLoader();
final InputStream inputStream = loader.getResourceAsStream("project.properties");
// In some cases, e.g. native images, there is no way to load files,
// and the inputStream returned is null.
if (inputStream == null) {
return API_VERSION_UNKNOWN;
}
properties.load(inputStream);
return properties.getProperty("version");
} catch (final IOException ex) {
return API_VERSION_UNKNOWN;
}
}