mirror of https://github.com/apache/jclouds.git
Do not set member until we completely validate it
This commit is contained in:
parent
af65dbbac3
commit
c7dc1213f0
|
@ -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