package com.github.mikkoi.maven.plugins.enforcer.rule.propertyusage;

import java.io.FileInputStream;
import java.io.IOException;
import java.io.InputStream;
import java.util.Properties;

@SuppressWarnings({"all"})
public class App1 {

    private String myPropertyValue = "";

    private Integer otherPropVal = 0;

    private App1() {
        Properties properties = new Properties();
        try (InputStream inputStream = new FileInputStream("app1.properties") ) {
            properties.load(inputStream);
            myPropertyValue = properties.getProperty("my.property.value");
            otherPropVal = Integer.valueOf(properties.getProperty("other.prop.val"));

        } catch (IOException e) {
            System.out.print(e.getMessage());
        }

    }
}

@@ -233,89 +233,8 @@
  %7B%0A%0A
-    private String myPropertyValue = %22%22;%0A%0A    private Integer otherPropVal = 0;%0A%0A
     
@@ -436,16 +436,29 @@
         
+final String 
 myProper
@@ -524,16 +524,30 @@
         
+final Integer 
 otherPro

Make variables local