Better local names
This commit is contained in:
@@ -143,12 +143,12 @@ public class SimpleLog implements Log, Serializable {
|
|||||||
if (null != in) {
|
if (null != in) {
|
||||||
try {
|
try {
|
||||||
simpleLogProps.load(in);
|
simpleLogProps.load(in);
|
||||||
} catch (final IOException e) {
|
} catch (final IOException ignore) {
|
||||||
// ignored
|
// ignored
|
||||||
} finally {
|
} finally {
|
||||||
try {
|
try {
|
||||||
in.close();
|
in.close();
|
||||||
} catch (final IOException e) {
|
} catch (final IOException ignore) {
|
||||||
// ignored
|
// ignored
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@@ -171,9 +171,9 @@ public class SimpleLog implements Log, Serializable {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
private static boolean getBooleanProperty(final String name, final boolean dephault) {
|
private static boolean getBooleanProperty(final String name, final boolean defaultValue) {
|
||||||
final String prop = getStringProperty(name);
|
final String prop = getStringProperty(name);
|
||||||
return prop == null ? dephault : "true".equalsIgnoreCase(prop);
|
return prop == null ? defaultValue : "true".equalsIgnoreCase(prop);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
@@ -258,9 +258,9 @@ public class SimpleLog implements Log, Serializable {
|
|||||||
}
|
}
|
||||||
return prop == null ? simpleLogProps.getProperty(name) : prop;
|
return prop == null ? simpleLogProps.getProperty(name) : prop;
|
||||||
}
|
}
|
||||||
private static String getStringProperty(final String name, final String dephault) {
|
private static String getStringProperty(final String name, final String defaultValue) {
|
||||||
final String prop = getStringProperty(name);
|
final String prop = getStringProperty(name);
|
||||||
return prop == null ? dephault : prop;
|
return prop == null ? defaultValue : prop;
|
||||||
}
|
}
|
||||||
/** The name of this simple log instance */
|
/** The name of this simple log instance */
|
||||||
protected volatile String logName;
|
protected volatile String logName;
|
||||||
|
|||||||
Reference in New Issue
Block a user