> +
> + if (!Strings.isNullOrEmpty(objectManifest)) {
> + removeObjectsWithPrefix(objectManifest);
> + }
> + }
> +
> + private String getObjectManifest(String container, String key) {
> + MutableObjectInfoWithMetadata info = sync.getObjectInfo(container,
> key);
> + return info.getObjectManifest();
> + }
> +
> + private void removeObjectsWithPrefix(String containerAndPrefix) {
> + int separatorIndex = containerAndPrefix.indexOf('/');
> + if (separatorIndex < 0) {
> + throw new IllegalArgumentException("No / separator found in \"" +
> containerAndPrefix + "\"");
> + }
Use the [template version of
`checkArgument`](http://google-collections.googlecode.com/svn/trunk/javadoc/com/google/common/base/Preconditions.html#checkArgument\(boolean,
java.lang.String, java.lang.Object...\)) and Splitter?
---
Reply to this email directly or view it on GitHub:
https://github.com/jclouds/jclouds/pull/123/files#r5913609