mirror of
https://github.com/apache/sqoop.git
synced 2025-05-03 06:09:47 +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:
parent
b7a3f47222
commit
b4d59da671
@ -367,7 +367,7 @@ public String getTmpDir() {
|
||||
}
|
||||
|
||||
public void setTmpDir(String tmp) {
|
||||
this.tmpDir = tmpDir;
|
||||
this.tmpDir = tmp;
|
||||
}
|
||||
|
||||
public String getConnectString() {
|
||||
|
@ -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.
|
||||
|
@ -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()),
|
||||
|
Loading…
Reference in New Issue
Block a user