Skip to content

Commit

Permalink
https://github.com/metadatacenter/cedar-project/issues/1198
Browse files Browse the repository at this point in the history
  • Loading branch information
Attila L. Egyedi committed Nov 8, 2023
1 parent e664438 commit 1781118
Show file tree
Hide file tree
Showing 5 changed files with 3 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,7 +1,5 @@
package org.metadatacenter.impex.util;

import org.metadatacenter.model.BiboStatus;

public final class Constants {

public static final String UPLOAD_FOLDER_NAME = "impex-upload";
Expand Down
4 changes: 2 additions & 2 deletions cedar-impex-server-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -52,8 +52,8 @@
</dependency>

<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpclient</artifactId>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
</dependency>

<dependency>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.metadatacenter.impex.imp.cadsr;

import java.time.LocalTime;
import java.util.Date;

public class CadsrFileImportStatus {

Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package org.metadatacenter.impex.upload;

import java.io.InputStream;
import java.util.List;
import java.util.Map;

/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,6 @@
import org.apache.commons.fileupload.FileUploadException;
import org.apache.commons.fileupload.disk.DiskFileItemFactory;
import org.apache.commons.fileupload.servlet.ServletFileUpload;
import org.joda.time.DateTime;
import org.joda.time.DateTimeZone;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

Expand Down Expand Up @@ -151,6 +149,6 @@ public static String getFileLocalFolderPath(String uploadLocalFolderPath, String
}

public static String getLastFragmentOfUrl(String url) {
return url.substring(url.lastIndexOf("/") + 1, url.length());
return url.substring(url.lastIndexOf("/") + 1);
}
}

0 comments on commit 1781118

Please sign in to comment.