fixed some warnings that showed up in 4.2. The warnings werent interesting, though.

This commit is contained in:
Reinier Zwitserloot committed 2012-06-25 21:26:51 +02:00
1 parent 073f325d71
commit 960761a298
1 file changed
+7 -2
@@ -111,9 +111,13 @@ public class EclipseLocation extends IdeLocation {
BufferedReader br = new BufferedReader(new InputStreamReader(fis));
String line;
while ((line = br.readLine()) != null) {
if (JAVA_AGENT_LINE_MATCHER.matcher(line.trim()).matches()) return true;
if (JAVA_AGENT_LINE_MATCHER.matcher(line.trim()).matches()) {
br.close();
return true;
}
}
br.close();
return false;
} finally {
fis.close();
@@ -171,8 +175,8 @@ public class EclipseLocation extends IdeLocation {
}
newContents.append(line).append(OS_NEWLINE);
br.close();
}
} finally {
fis.close();
}
@@ -323,6 +327,7 @@ public class EclipseLocation extends IdeLocation {
}
newContents.append(line).append(OS_NEWLINE);
br.close();
}
} finally {
fis.close();