1
0

Remove unnecessary parentheses.

git-svn-id: https://svn.apache.org/repos/asf/commons/proper/logging/trunk@1432026 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Gary D. Gregory
2013-01-11 13:02:50 +00:00
parent 663137e8f0
commit 268b725476
15 changed files with 54 additions and 54 deletions

View File

@@ -270,7 +270,7 @@ public class WeakHashtableTest extends TestCase {
public void run() {
for (int i = 0; i < RUN_LOOPS; i++) {
hashtable.put("key" + ":" + (i%10), Boolean.TRUE);
hashtable.put("key" + ":" + i%10, Boolean.TRUE);
if(i%50 == 0) {
yield();
}

View File

@@ -46,7 +46,7 @@ public class TestHandler extends Handler {
public Iterator records() {
return (records.iterator());
return records.iterator();
}

View File

@@ -170,22 +170,22 @@ public abstract class StandardTests extends TestCase {
ev = (LogEvent) logEvents.get(0);
assertEquals("Info message expected", "info", ev.msg);
assertEquals("Info level expected", "INFO", ev.level);
assertEquals("Exception data incorrect", (ev.throwable!=null), thrown);
assertEquals("Exception data incorrect", ev.throwable!=null, thrown);
ev = (LogEvent) logEvents.get(1);
assertEquals("Warn message expected", "warn", ev.msg);
assertEquals("Warn level expected", "WARN", ev.level);
assertEquals("Exception data incorrect", (ev.throwable!=null), thrown);
assertEquals("Exception data incorrect", ev.throwable!=null, thrown);
ev = (LogEvent) logEvents.get(2);
assertEquals("Error message expected", "error", ev.msg);
assertEquals("Error level expected", "ERROR", ev.level);
assertEquals("Exception data incorrect", (ev.throwable!=null), thrown);
assertEquals("Exception data incorrect", ev.throwable!=null, thrown);
ev = (LogEvent) logEvents.get(3);
assertEquals("Fatal message expected", "fatal", ev.msg);
assertEquals("Fatal level expected", "FATAL", ev.level);
assertEquals("Exception data incorrect", (ev.throwable!=null), thrown);
assertEquals("Exception data incorrect", ev.throwable!=null, thrown);
}

View File

@@ -73,7 +73,7 @@ public class TestAppender extends AppenderSkeleton {
public boolean requiresLayout() {
return (false);
return false;
}

View File

@@ -43,27 +43,27 @@ public class DecoratedSimpleLog extends SimpleLog {
// ------------------------------------------------------------- Properties
public DateFormat getDateTimeFormatter() {
return (dateFormatter);
return dateFormatter;
}
public String getDateTimeFormat() {
return (dateTimeFormat);
return dateTimeFormat;
}
public String getLogName() {
return (logName);
return logName;
}
public boolean getShowDateTime() {
return (showDateTime);
return showDateTime;
}
public boolean getShowShortName() {
return (showShortName);
return showShortName;
}
@@ -94,7 +94,7 @@ public class DecoratedSimpleLog extends SimpleLog {
// Return cache
public List getCache() {
return (this.cache);
return this.cache;
}