Polish
This commit is contained in:
@@ -16,8 +16,6 @@
|
||||
|
||||
package org.springframework.boot.actuate.web.exchanges;
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Collections;
|
||||
import java.util.LinkedList;
|
||||
import java.util.List;
|
||||
|
||||
@@ -59,7 +57,7 @@ public class InMemoryHttpExchangeRepository implements HttpExchangeRepository {
|
||||
@Override
|
||||
public List<HttpExchange> findAll() {
|
||||
synchronized (this.httpExchanges) {
|
||||
return Collections.unmodifiableList(new ArrayList<>(this.httpExchanges));
|
||||
return List.copyOf(this.httpExchanges);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user