mirror of https://github.com/apache/jclouds.git
Merge pull request #594 from andrewgaul/in-directory-null
Do not set member until we completely validate it
This commit is contained in:
commit
ca32ab3af5
|
@ -140,8 +140,9 @@ public class ListContainerOptions extends ListOptions implements Cloneable {
|
||||||
*
|
*
|
||||||
*/
|
*/
|
||||||
public ListContainerOptions inDirectory(String dir) {
|
public ListContainerOptions inDirectory(String dir) {
|
||||||
this.dir = checkNotNull(dir, "dir");
|
checkNotNull(dir, "dir");
|
||||||
checkArgument(!dir.equals("/"), "dir must not be a slash");
|
checkArgument(!dir.equals("/"), "dir must not be a slash");
|
||||||
|
this.dir = dir;
|
||||||
return this;
|
return this;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue