Skip to content

Commit

Permalink
Rename method.
Browse files Browse the repository at this point in the history
  • Loading branch information
dkocher committed Jan 26, 2025
1 parent 73ec485 commit 2bd5bbb
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion core/src/main/java/ch/cyberduck/core/AbstractProtocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ public Set<Location.Name> getRegions() {
}

@Override
public Set<Location.Name> getRegions(final List<String> regions) {
public Set<Location.Name> toLocations(final List<String> regions) {
return regions.stream().map(Location.Name::new).collect(Collectors.toSet());
}

Expand Down
6 changes: 3 additions & 3 deletions core/src/main/java/ch/cyberduck/core/Profile.java
Original file line number Diff line number Diff line change
Expand Up @@ -459,12 +459,12 @@ public Set<Location.Name> getRegions() {
if(regions.isEmpty()) {
return parent.getRegions();
}
return parent.getRegions(regions);
return parent.toLocations(regions);
}

@Override
public Set<Location.Name> getRegions(final List<String> regions) {
return parent.getRegions(regions);
public Set<Location.Name> toLocations(final List<String> regions) {
return parent.toLocations(regions);
}

@Override
Expand Down
2 changes: 1 addition & 1 deletion core/src/main/java/ch/cyberduck/core/Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,7 @@ public interface Protocol extends FeatureFactory, Comparable<Protocol>, Serializ
* @param regions Available regions represented as strings from profile
* @return Localized region set
*/
Set<Location.Name> getRegions(List<String> regions);
Set<Location.Name> toLocations(List<String> regions);

/**
* @return Default region
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,7 @@ public boolean isPasswordConfigurable() {
}

@Override
public Set<Location.Name> getRegions(final List<String> regions) {
public Set<Location.Name> toLocations(final List<String> regions) {
return regions.stream().map(GoogleStorageLocationFeature.GoogleStorageRegion::new).collect(Collectors.toSet());
}

Expand Down
2 changes: 1 addition & 1 deletion s3/src/main/java/ch/cyberduck/core/s3/S3Protocol.java
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ public String getSTSEndpoint() {
}

@Override
public Set<Location.Name> getRegions(final List<String> regions) {
public Set<Location.Name> toLocations(final List<String> regions) {
return regions.stream().map(S3LocationFeature.S3Region::new).collect(Collectors.toSet());
}

Expand Down

0 comments on commit 2bd5bbb

Please sign in to comment.