Skip to content

Commit 15377b0

Browse files
More cleanup (#903)
1 parent bd918e1 commit 15377b0

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

WNPRC_Compliance/src/org/labkey/wnprc_compliance/WNPRC_ComplianceController.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,13 +23,13 @@
2323
import org.labkey.dbutils.api.SimpleQueryFactory;
2424
import org.labkey.dbutils.api.SimpleQueryUpdater;
2525
import org.labkey.dbutils.api.SimplerFilter;
26+
import org.labkey.vfs.FileLike;
2627
import org.labkey.webutils.api.action.SimpleJspPageAction;
2728
import org.labkey.wnprc_compliance.form.NewUserForm;
2829
import org.labkey.wnprc_compliance.form.RequirementForm;
2930
import org.labkey.wnprc_compliance.security.ComplianceAdminPermission;
3031
import org.springframework.validation.BindException;
3132

32-
import java.io.File;
3333
import java.io.IOException;
3434
import java.io.InputStream;
3535
import java.io.Writer;
@@ -273,7 +273,7 @@ public Object execute(NewUserFormWithData form, BindException errors) throws Exc
273273
@RequiresPermission(ComplianceAdminPermission.class)
274274
public class UploadAccessReportAPI extends AbstractFileUploadAction {
275275
@Override
276-
protected File handleFile(String filename, InputStream input, Writer writer) throws IOException {
276+
protected FileLike handleFile(String filename, InputStream input, Writer writer) throws IOException {
277277
try {
278278

279279
AccessReportService service = new AccessReportService(getUser(), getContainer());
@@ -291,7 +291,7 @@ protected File handleFile(String filename, InputStream input, Writer writer) thr
291291
}
292292

293293
@Override
294-
protected File getTargetFile(String filename) throws IOException {
294+
protected FileLike getTargetFile(String filename) throws IOException {
295295
// We'll be intercepting the stream, and we override handleFile(), so we don't need
296296
// to implement this. If that ever changes, look at using /dev/null ("NUL" for Windows)
297297
// to truly give a data sink.

0 commit comments

Comments
 (0)