Skip to content

Commit

Permalink
solve issue yegor256#360
Browse files Browse the repository at this point in the history
  • Loading branch information
hs3180 committed Mar 9, 2016
1 parent 611462e commit 57f20e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Parser.java
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ public synchronized File getFile() {
return file;
}
public String getContent() throws IOException {
FileInputStream i = new FileInputStream(file);
final FileInputStream i = new FileInputStream(file);
String output = "";
int data;
while ((data = i.read()) > 0) {
Expand All @@ -23,7 +23,7 @@ public String getContent() throws IOException {
return output;
}
public String getContentWithoutUnicode() throws IOException {
FileInputStream i = new FileInputStream(file);
final FileInputStream i = new FileInputStream(file);
String output = "";
int data;
while ((data = i.read()) > 0) {
Expand All @@ -34,7 +34,7 @@ public String getContentWithoutUnicode() throws IOException {
return output;
}
public void saveContent(String content) throws IOException {
FileOutputStream o = new FileOutputStream(file);
final FileOutputStream o = new FileOutputStream(file);
for (int i = 0; i < content.length(); i += 1) {
o.write(content.charAt(i));
}
Expand Down

0 comments on commit 57f20e4

Please sign in to comment.