Skip to content

Commit 3087d2e

Browse files
lint cleanup
1 parent 4746f41 commit 3087d2e

File tree

4 files changed

+4
-74
lines changed

4 files changed

+4
-74
lines changed

app/build.properties

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
#Build Properties
2-
#Sun Nov 11 11:05:44 EST 2018
2+
#Sun Nov 11 11:12:34 EST 2018
33
version_minor=0
4-
version_build=1
4+
version_build=2
55
version_patch=2
6-
version_major=2
76
version_store=43
7+
version_major=2

app/src/main/java/com/vrem/util/FileUtils.java

Lines changed: 1 addition & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -33,9 +33,7 @@ private FileUtils() {
3333

3434
@NonNull
3535
public static String readFile(@NonNull Resources resources, @RawRes int id) {
36-
InputStream inputStream = null;
37-
try {
38-
inputStream = resources.openRawResource(id);
36+
try (InputStream inputStream = resources.openRawResource(id)) {
3937
int size = inputStream.available();
4038
byte[] bytes = new byte[size];
4139
int count = inputStream.read(bytes);
@@ -46,14 +44,6 @@ public static String readFile(@NonNull Resources resources, @RawRes int id) {
4644
} catch (Exception e) {
4745
// file is corrupted
4846
return StringUtils.EMPTY;
49-
} finally {
50-
if (inputStream != null) {
51-
try {
52-
inputStream.close();
53-
} catch (Exception e) {
54-
// do nothing
55-
}
56-
}
5747
}
5848
}
5949
}

app/src/main/res/layout/scan_interval_dialog.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

app/src/main/res/layout/setting_content.xml

Lines changed: 0 additions & 30 deletions
This file was deleted.

0 commit comments

Comments
 (0)