This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-pool.git
The following commit(s) were added to refs/heads/master by this push:
new af6647c8 Use diamonds
af6647c8 is described below
commit af6647c8fe5bc286d1f93fb6369f502c903d9e88
Author: Gary Gregory <[email protected]>
AuthorDate: Thu Nov 28 11:01:33 2024 -0500
Use diamonds
---
.../org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git
a/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
b/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
index c22e40b3..d8bb6886 100644
---
a/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
+++
b/src/main/java/org/apache/commons/pool3/impl/ResilientPooledObjectFactory.java
@@ -453,8 +453,8 @@ public class ResilientPooledObjectFactory<T, E extends
Exception> implements Poo
* @return a copy of the makeObject log
*/
public List<MakeEvent> getMakeObjectLog() {
- ArrayList<MakeEvent> makeObjectLog = new ArrayList<MakeEvent>();
- return new ArrayList<MakeEvent>(makeObjectLog.stream().toList());
+ ArrayList<MakeEvent> makeObjectLog = new ArrayList<>();
+ return new ArrayList<>(makeObjectLog.stream().toList());
}
/**