@Test void testStripProtocol() throws Exception { assertThat(stripProtocol("s3: assertThat(stripProtocol("s3: assertThat(stripProtocol("s3: assertThat(stripProtocol("s3: .isEqualTo("foo/bar.txt^versionIdValue"); assertThat(stripProtocol("s3: }
static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); }
SimpleStorageNameUtils { static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); } }
SimpleStorageNameUtils { static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); } private  SimpleStorageNameUtils(); }
SimpleStorageNameUtils { static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); } private  SimpleStorageNameUtils();  }
SimpleStorageNameUtils { static String stripProtocol(String location) { Assert.notNull(location, "Location must not be null"); if (!isSimpleStorageResource(location)) { throw new IllegalArgumentException( "The location :'" + location + "' is not a valid S3 location"); } return location.substring(S3_PROTOCOL_PREFIX.length()); } private  SimpleStorageNameUtils();   }