mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 08:35:13 +00:00
HHH-13496 Prefer singletonList when possible
This commit is contained in:
parent
99ae7c94e3
commit
9196a4e01e
@ -8,6 +8,7 @@
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import javax.xml.namespace.QName;
|
||||
@ -28,7 +29,8 @@
|
||||
* @author Steve Ebersole
|
||||
*/
|
||||
public class HbmEventReader extends EventReaderDelegate {
|
||||
private static final List<String> NAMESPACE_URIS_TO_MAP = Arrays.asList(
|
||||
|
||||
private static final List<String> NAMESPACE_URIS_TO_MAP = Collections.singletonList(
|
||||
// we need to recognize the initial, prematurely-chosen hbm.xml xsd namespace
|
||||
"http://www.hibernate.org/xsd/hibernate-mapping"
|
||||
);
|
||||
|
@ -8,6 +8,7 @@
|
||||
|
||||
import java.util.ArrayList;
|
||||
import java.util.Arrays;
|
||||
import java.util.Collections;
|
||||
import java.util.Iterator;
|
||||
import java.util.List;
|
||||
import javax.xml.namespace.QName;
|
||||
@ -39,7 +40,8 @@
|
||||
* @author Hardy Ferentschik
|
||||
*/
|
||||
public class JpaOrmXmlEventReader extends EventReaderDelegate {
|
||||
private static final List<String> NAMESPACE_URIS_TO_MAP = Arrays.asList(
|
||||
|
||||
private static final List<String> NAMESPACE_URIS_TO_MAP = Collections.singletonList(
|
||||
// JPA 1.0 and 2.0 namespace uri
|
||||
"http://java.sun.com/xml/ns/persistence/orm"
|
||||
);
|
||||
|
Loading…
x
Reference in New Issue
Block a user