diff options
Diffstat (limited to 'src')
-rw-r--r-- | src/installer/lombok/installer/eclipse/EclipseLocation.java | 9 |
1 files changed, 7 insertions, 2 deletions
diff --git a/src/installer/lombok/installer/eclipse/EclipseLocation.java b/src/installer/lombok/installer/eclipse/EclipseLocation.java index fa770d7d..ebc661b8 100644 --- a/src/installer/lombok/installer/eclipse/EclipseLocation.java +++ b/src/installer/lombok/installer/eclipse/EclipseLocation.java @@ -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(); |