testing-junit-component-under-test.src.main.java.org.gradle.SmartApp Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of gradle-api Show documentation
Show all versions of gradle-api Show documentation
Gradle 6.9.1 API redistribution.
package org.gradle;
import java.util.Properties;
public class SmartApp {
private static final double FACTOR;
static {
double factor = 0;
try {
Properties props = new Properties();
props.load(SmartApp.class.getResourceAsStream("resource.properties"));
factor = Double.valueOf(props.getProperty("factor", "0"));
} catch (Exception ex) {
} finally {
FACTOR = factor;
}
}
public double smartComputation(double x) {
return FACTOR*x;
}
}
© 2015 - 2025 Weber Informatics LLC | Privacy Policy