Issue-ID: USECASEUI-493
Change-Id: I5e0b13347070fee993f34ce5b55fc08cf96ba2e2
Signed-off-by: arind.mondal@samsung.com
public void initConfig() {
String slicingPath = System.getProperty("user.dir") + File.separator + "config" + File.separator + "slicing.properties";
Properties p = new Properties();
- try {
- InputStream inputStream = new FileInputStream(new File(slicingPath));
+ try(InputStream inputStream = new FileInputStream(new File(slicingPath));) {
p.load(inputStream);
String strKpiHours = p.getProperty("slicing.kpi.hours");
this.kpiHours = Integer.parseInt(strKpiHours);