[errorprone] Fix InfiniteRecursion error in RecordingLogger
Change-Id: I092389e428232a4fe7613d846c288d285ae9102c
This commit is contained in:
parent
6fde4d3a6c
commit
a268faf729
|
@ -180,11 +180,15 @@ public void warn(String msg) {
|
|||
|
||||
@Override
|
||||
public void warn(String format, Object arg) {
|
||||
warn(format, Collections.singleton(arg));
|
||||
addWarnings(format, Collections.singleton(arg));
|
||||
}
|
||||
|
||||
@Override
|
||||
public void warn(String format, Object... arguments) {
|
||||
addWarnings(format, arguments);
|
||||
}
|
||||
|
||||
private void addWarnings(String format, Object... arguments) {
|
||||
synchronized (warnings) {
|
||||
int i = 0;
|
||||
int index = format.indexOf("{}");
|
||||
|
|
Loading…
Reference in New Issue