mirror of
https://github.com/hibernate/hibernate-orm
synced 2025-02-17 00:24:57 +00:00
HHH-8821 corrected failing test
This commit is contained in:
parent
17acc05056
commit
eb764fadcc
@ -74,7 +74,7 @@ protected String getEntryBasePrefix() {
|
|||||||
|
|
||||||
protected String extractRelativeName(ZipEntry zipEntry) {
|
protected String extractRelativeName(ZipEntry zipEntry) {
|
||||||
final String entryName = extractName( zipEntry );
|
final String entryName = extractName( zipEntry );
|
||||||
return entryBasePrefix == null ? entryName : entryName.substring( entryBasePrefix.length() );
|
return entryBasePrefix != null && entryName.contains( entryBasePrefix ) ? entryName.substring( entryBasePrefix.length() ) : entryName;
|
||||||
}
|
}
|
||||||
|
|
||||||
protected String extractName(ZipEntry zipEntry) {
|
protected String extractName(ZipEntry zipEntry) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user