mirror of
https://github.com/DSpace/DSpace.git
synced 2025-10-07 01:54:22 +00:00
Merge pull request #1184 from KevinVdV/DS-2901-fix-broken-equals-methods-itemimport
[DS-2901] Fix broken equals methods found by FindBugs
This commit is contained in:
@@ -1658,7 +1658,7 @@ public class ItemImportServiceImpl implements ItemImportService, InitializingBea
|
||||
//regex supports either windows or *nix file paths
|
||||
String[] entryChunks = entry.getName().split("/|\\\\");
|
||||
if(entryChunks.length > 2) {
|
||||
if(sourceDirForZip == sourcedir) {
|
||||
if(StringUtils.equals(sourceDirForZip, sourcedir)) {
|
||||
sourceDirForZip = sourcedir + "/" + entryChunks[0];
|
||||
}
|
||||
}
|
||||
|
Reference in New Issue
Block a user