Commit 40ef1501 authored by Tigran Mkrtchyan's avatar Tigran Mkrtchyan
Browse files

core: remove deprecated method CompoundContextBuilder#withExportFile

Acked-by: Lea Morschel
Acked-by: Albert Rossi
Acked-by: Paul Millar
Target: master
parent fd1561c2
/*
* Copyright (c) 2009 - 2019 Deutsches Elektronen-Synchroton,
* Copyright (c) 2009 - 2020 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
......@@ -51,14 +51,6 @@ public class CompoundContextBuilder {
return this;
}
/**
* @deprecated Use {@link #withExportTable}
*/
@Deprecated
public CompoundContextBuilder withExportFile(ExportFile exportFile) {
return withExportTable(exportFile);
}
public CompoundContextBuilder withExportTable(ExportTable exportTable) {
this.exportTable = exportTable;
return this;
......
......@@ -42,7 +42,7 @@ public class OperationGETATTRTest {
CompoundContext context = new CompoundContextBuilder()
.withDeviceManager(dm)
.withCall(call)
.withExportFile(exportFile)
.withExportTable(exportFile)
.build();
Optional<fattr4_fs_layout_types> res = (Optional<fattr4_fs_layout_types>) OperationGETATTR.fattr2xdr(nfs4_prot.FATTR4_FS_LAYOUT_TYPES, null, null, null, context);
......
/*
* Copyright (c) 2009 - 2016 Deutsches Elektronen-Synchroton,
* Copyright (c) 2009 - 2020 Deutsches Elektronen-Synchroton,
* Member of the Helmholtz Association, (DESY), HAMBURG, GERMANY
*
* This library is free software; you can redistribute it and/or modify
......@@ -55,7 +55,7 @@ public class OperationSECINFO_NO_NAMETest {
ExportFile exportFile = new ExportFile(ClassLoader.getSystemResource("org/dcache/nfs/exports.sys").toURI());
CompoundContext context = new CompoundContextBuilder()
.withExportFile(exportFile)
.withExportTable(exportFile)
.withCall(generateRpcCall())
.build();
context.currentInode(inode);
......@@ -70,7 +70,7 @@ public class OperationSECINFO_NO_NAMETest {
ExportFile exportFile = new ExportFile(ClassLoader.getSystemResource("org/dcache/nfs/exports.krb").toURI());
CompoundContext context = new CompoundContextBuilder()
.withExportFile(exportFile)
.withExportTable(exportFile)
.withCall(generateRpcCall())
.build();
context.currentInode(inode);
......@@ -85,7 +85,7 @@ public class OperationSECINFO_NO_NAMETest {
ExportFile exportFile = new ExportFile(ClassLoader.getSystemResource("org/dcache/nfs/exports.mix").toURI());
CompoundContext context = new CompoundContextBuilder()
.withExportFile(exportFile)
.withExportTable(exportFile)
.withCall(generateRpcCall())
.build();
context.currentInode(inode);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment