Remove Implicit Type Parameters
This commit is contained in:
@@ -131,7 +131,7 @@ public class ArrayMarshaller<E> implements Marshaller<ArrayTree<E>> {
|
||||
|
||||
if ((data.length == 1) && (data[0] == 0)) {
|
||||
E[] array = (E[]) new Object[] {};
|
||||
ArrayTree<E> tree = new ArrayTree<E>(this.comparator, array);
|
||||
ArrayTree<E> tree = new ArrayTree<>(this.comparator, array);
|
||||
return tree;
|
||||
}
|
||||
|
||||
@@ -160,7 +160,7 @@ public class ArrayMarshaller<E> implements Marshaller<ArrayTree<E>> {
|
||||
}
|
||||
}
|
||||
|
||||
ArrayTree<E> arrayTree = new ArrayTree<E>(this.comparator, nodes);
|
||||
ArrayTree<E> arrayTree = new ArrayTree<>(this.comparator, nodes);
|
||||
|
||||
return arrayTree;
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2005-2023 the original author or authors.
|
||||
* Copyright 2005-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -39,7 +39,7 @@ public class EmbeddedLdapServerFactoryBeanTests {
|
||||
assertThat(ldapTemplate).isNotNull();
|
||||
|
||||
List<String> list = ldapTemplate.search(LdapQueryBuilder.query().where("objectclass").is("person"),
|
||||
new AttributesMapper<String>() {
|
||||
new AttributesMapper<>() {
|
||||
public String mapFromAttributes(Attributes attrs) throws NamingException {
|
||||
return (String) attrs.get("cn").get();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2005-2016 the original author or authors.
|
||||
* Copyright 2005-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -49,7 +49,7 @@ public class EmbeddedLdapServerFactoryBeanTests {
|
||||
assertThat(ldapTemplate).isNotNull();
|
||||
|
||||
List<String> list = ldapTemplate.search(LdapQueryBuilder.query().where("objectclass").is("person"),
|
||||
new AttributesMapper<String>() {
|
||||
new AttributesMapper<>() {
|
||||
public String mapFromAttributes(Attributes attrs) throws NamingException {
|
||||
return (String) attrs.get("cn").get();
|
||||
}
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
/*
|
||||
* Copyright 2005-2016 the original author or authors.
|
||||
* Copyright 2005-2025 the original author or authors.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
@@ -49,7 +49,7 @@ public class TestContextSourceFactoryBeanTests {
|
||||
assertThat(ldapTemplate).isNotNull();
|
||||
|
||||
List<String> list = ldapTemplate.search(LdapQueryBuilder.query().where("objectclass").is("person"),
|
||||
new AttributesMapper<String>() {
|
||||
new AttributesMapper<>() {
|
||||
public String mapFromAttributes(Attributes attrs) throws NamingException {
|
||||
return (String) attrs.get("cn").get();
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user