mirror of
https://github.com/eclipse-cdt/cdt
synced 2025-08-01 05:15:43 +02:00
Cosmetics.
This commit is contained in:
parent
494b2dc62c
commit
2afd46deb6
1 changed files with 11 additions and 12 deletions
|
@ -312,8 +312,7 @@ public class TextSearchWrapper {
|
||||||
Reader reader;
|
Reader reader;
|
||||||
SimpleScanner scanner= new SimpleScanner();
|
SimpleScanner scanner= new SimpleScanner();
|
||||||
try {
|
try {
|
||||||
reader = new BufferedReader(
|
reader = new BufferedReader(new InputStreamReader(file.getContents(), file.getCharset()));
|
||||||
new InputStreamReader(file.getContents(), file.getCharset()));
|
|
||||||
} catch (CoreException e) {
|
} catch (CoreException e) {
|
||||||
return;
|
return;
|
||||||
} catch (UnsupportedEncodingException e) {
|
} catch (UnsupportedEncodingException e) {
|
||||||
|
@ -354,7 +353,7 @@ public class TextSearchWrapper {
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
reader.close();
|
reader.close();
|
||||||
} catch (IOException e1) {
|
} catch (IOException e) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Reference in a new issue