final and null check

This commit is contained in:
zzz
2013-06-10 14:01:52 +00:00
parent 62413331da
commit 39493e0f24
2 changed files with 4 additions and 2 deletions

View File

@@ -14,7 +14,7 @@ package net.i2p.util;
*
*/
class LogLimit {
private String _rootName;
private final String _rootName;
private int _limit;
public LogLimit(String name, int limit) {

View File

@@ -60,7 +60,9 @@ class LogRecordFormatter {
buf.append(getPriority(rec, manager.getContext()));
break;
case LogManager.MESSAGE:
buf.append(getWhat(rec));
String msg = getWhat(rec);
if (msg != null)
buf.append(msg);
break;
default:
buf.append(format[i]);