Skip to content

Commit

Permalink
Code cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
solkin committed Apr 10, 2024
1 parent 1a18b19 commit 3df0266
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion cache/src/main/java/com/tomclaw/cache/DiskLruCache.java
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ public long getJournalSize() {
}

private static void assertKeyValid(String key) {
if (key == null || key.length() == 0) {
if (key == null || key.isEmpty()) {
throw new IllegalArgumentException(String.format("Invalid key value: '%s'", key));
}
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@

public class SimpleFileManager implements FileManager {

private File dir;
private final File dir;

@SuppressWarnings("WeakerAccess")
public SimpleFileManager(File dir) {
Expand Down

0 comments on commit 3df0266

Please sign in to comment.