5
0
mirror of https://github.com/apache/sqoop.git synced 2025-05-02 18:11:13 +08:00

Fix dead store in SqoopOptions.setTmpDir().

From: Aaron Kimball <aaron@cloudera.com>

git-svn-id: https://svn.apache.org/repos/asf/incubator/sqoop/trunk@1149895 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Andrew Bayer 2011-07-22 20:03:46 +00:00
parent b7a3f47222
commit b4d59da671
3 changed files with 3 additions and 4 deletions

View File

@ -367,7 +367,7 @@ public String getTmpDir() {
}
public void setTmpDir(String tmp) {
this.tmpDir = tmpDir;
this.tmpDir = tmp;
}
public String getConnectString() {

View File

@ -202,7 +202,7 @@ public void testBadNumMappers1() throws Exception {
};
try {
SqoopOptions opts = parse(args);
parse(args);
fail("Expected InvalidOptionsException");
} catch (SqoopOptions.InvalidOptionsException ioe) {
// expected.
@ -216,7 +216,7 @@ public void testBadNumMappers2() throws Exception {
};
try {
SqoopOptions opts = parse(args);
parse(args);
fail("Expected InvalidOptionsException");
} catch (SqoopOptions.InvalidOptionsException ioe) {
// expected.

View File

@ -173,7 +173,6 @@ public void testGenerateOnly() throws IOException {
setNumCols(1);
// Figure out where our target generated .q file is going to be.
String [] emptyArgs = new String[0];
SqoopOptions options = getSqoopOptions(getArgv(false, null),
new ImportTool());
Path ddlFile = new Path(new Path(options.getCodeOutputDir()),