Skip to content

Commit

Permalink
Removing call to getResourceAsStream
Browse files Browse the repository at this point in the history
  • Loading branch information
Elad92 committed Sep 10, 2017
1 parent 43d093b commit aac28c9
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/main/java/com/j256/ormlite/logger/LocalLog.java
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,11 @@ protected DateFormat initialValue() {
private final Level level;

static {
InputStream stream = LocalLog.class.getResourceAsStream(LOCAL_LOG_PROPERTIES_FILE);
// InputStream stream = LocalLog.class.getResourceAsStream(LOCAL_LOG_PROPERTIES_FILE);

// Not calling getResourceAsStream in Android because it's really slow, and we
// aren't using the logger anyway.
InputStream stream = null;
List<PatternLevel> levels = readLevelResourceFile(stream);
classLevels = levels;

Expand Down

0 comments on commit aac28c9

Please sign in to comment.