Skip to content

Commit

Permalink
core: remove deprecated method CompoundContextBuilder#withExportFile
Browse files Browse the repository at this point in the history
Acked-by: Lea Morschel
Acked-by: Albert Rossi
Acked-by: Paul Millar
Target: master
  • Loading branch information
kofemann committed Jul 10, 2020
1 parent fd1561c commit 40ef150
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 14 deletions.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* 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
Expand Down Expand Up @@ -51,14 +51,6 @@ public CompoundContextBuilder withDeviceManager(NFSv41DeviceManager deviceManage
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;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public void testDefaultLayoutType() throws IOException, URISyntaxException {
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);
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*
* 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
Expand Down Expand Up @@ -55,7 +55,7 @@ public void testSecUnix() throws Exception {

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);
Expand All @@ -70,7 +70,7 @@ public void testSecKrb() throws Exception {

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);
Expand All @@ -85,7 +85,7 @@ public void testSecMix() throws Exception {

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);
Expand Down

0 comments on commit 40ef150

Please sign in to comment.