Skip to content

Commit

Permalink
Remove two public methods
Browse files Browse the repository at this point in the history
  • Loading branch information
belugabehr committed Sep 20, 2023
1 parent a9194a2 commit e0f6c16
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions core/arns/src/main/java/software/amazon/awssdk/arns/Arn.java
Original file line number Diff line number Diff line change
Expand Up @@ -151,10 +151,7 @@ public static Builder builder() {
*/
public static Arn fromString(String arn) {
Validate.paramNotBlank(arn, "arn");
return parseString(arn);
}

public static Arn parseString(String arn) {
int arnColonIndex = arn.indexOf(':');
if (arnColonIndex < 0 || !"arn".equals(arn.substring(0, arnColonIndex))) {
throw new IllegalArgumentException("Malformed ARN. Missing 'arn:' prefix: " + arn);
Expand Down

0 comments on commit e0f6c16

Please sign in to comment.