We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a9194a2 commit e0f6c16Copy full SHA for e0f6c16
core/arns/src/main/java/software/amazon/awssdk/arns/Arn.java
@@ -151,10 +151,7 @@ public static Builder builder() {
151
*/
152
public static Arn fromString(String arn) {
153
Validate.paramNotBlank(arn, "arn");
154
- return parseString(arn);
155
- }
156
157
- public static Arn parseString(String arn) {
158
int arnColonIndex = arn.indexOf(':');
159
if (arnColonIndex < 0 || !"arn".equals(arn.substring(0, arnColonIndex))) {
160
throw new IllegalArgumentException("Malformed ARN. Missing 'arn:' prefix: " + arn);
0 commit comments