HHH-15094 Remove duplicate DTD descriptor

This commit is contained in:
Yoann Rodière 2022-03-01 10:32:14 +01:00 committed by Sanne Grinovero
parent d56032ab7f
commit 8c0bc94480
1 changed files with 0 additions and 10 deletions

View File

@ -84,11 +84,6 @@ public class LocalXmlResourceResolver implements javax.xml.stream.XMLResolver {
return openUrlStream( MAPPING_DTD.localSchemaUrl );
}
if ( LEGACY2_MAPPING_DTD.matches( publicID, systemID ) ) {
DEPRECATION_LOGGER.recognizedObsoleteHibernateNamespace( LEGACY2_MAPPING_DTD.getIdentifierBase(), MAPPING_DTD.getIdentifierBase() );
return openUrlStream( MAPPING_DTD.localSchemaUrl );
}
if ( CFG_DTD.matches( publicID, systemID ) ) {
return openUrlStream( CFG_DTD.localSchemaUrl );
}
@ -143,11 +138,6 @@ public class LocalXmlResourceResolver implements javax.xml.stream.XMLResolver {
);
public static final DtdDescriptor LEGACY_MAPPING_DTD = new DtdDescriptor(
"www.hibernate.org/dtd/hibernate-mapping",
"org/hibernate/hibernate-mapping-3.0.dtd"
);
public static final DtdDescriptor LEGACY2_MAPPING_DTD = new DtdDescriptor(
"hibernate.sourceforge.net/hibernate-mapping",
"org/hibernate/hibernate-mapping-3.0.dtd"
);