import org.apache.commons.io.IOUtils;
import org.apache.commons.lang.text.StrSubstitutor;
+import javax.annotation.WillClose;
+
import java.io.File;
import java.io.FileInputStream;
import java.io.IOException;
/**
* Note that the input stream is closed in this method.
*/
- public static Properties readInputStream(InputStream input) throws IOException {
+ public static Properties readInputStream(@WillClose InputStream input) throws IOException {
try {
Properties p = new Properties();
p.load(input);