Skip to content

Commit 20bd767

Browse files
authored
Fix order of parameters in exception message (#4472)
1 parent 8935502 commit 20bd767

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

core/http-auth-aws/src/main/java/software/amazon/awssdk/http/auth/aws/internal/signer/util/OptionalDependencyLoaderUtil.java

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,12 +52,8 @@ private static void requireClass(String classPath, String module, String feature
5252
ClassLoaderHelper.loadClass(classPath, false);
5353
} catch (ClassNotFoundException e) {
5454
LOG.debug(() -> "Cannot find the " + classPath + " class: ", e);
55-
String msg = String.format(
56-
"Could not load class. You must add a dependency on the '%s' module to enable the %s feature: ",
57-
feature,
58-
module
59-
);
60-
55+
String msg = String.format("Could not load class. You must add a dependency on the '%s' module to enable the %s "
56+
+ "feature: ", module, feature);
6157
throw new RuntimeException(msg, e);
6258
} catch (Exception e) {
6359
throw new RuntimeException(String.format("Could not load class (%s): ", classPath), e);

0 commit comments

Comments
 (0)