mirror of
https://github.com/tiennm99/lombok.git
synced 2026-10-18 00:15:24 +00:00
fixed some warnings that showed up in 4.2. The warnings werent interesting, though.
This commit is contained in:
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();
|
||||
|
||||
Reference in new issue
Block a user