Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
yidian1997 committed Jan 14, 2025
1 parent d996075 commit e5a0bc1
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -323,7 +323,7 @@ private Optional<SdkHttpClient.Builder> getAmazonSdkHttpClientBuilderInstance()
final Class<?> c = getClass(AbstractLargeMessageConfig.S3_SDK_HTTP_CLIENT_BUILDER_CONFIG);
if (c == null) {
return Optional.empty();
}else if (c.getName().equals(NoSdkHttpClientBuilder.class.getName())) {
} else if (c.getName().equals(NoSdkHttpClientBuilder.class.getName())) {
return Optional.empty();
}
final Object o = Utils.newInstance(c);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -108,12 +108,12 @@ private void store(final String bucket, final String key, final String s) {
.build(), RequestBody.fromString(s));
}

private static <T> T getPrivateField(Object object, String fieldName, Class<T> fieldType){
private static <T> T getPrivateField(Object object, String fieldName, Class<T> fieldType) {
try {
Field field = object.getClass().getDeclaredField(fieldName);
field.setAccessible(true);
return fieldType.cast(field.get(object));
} catch (NoSuchFieldException | IllegalAccessException e){
} catch (NoSuchFieldException | IllegalAccessException e) {
throw new RuntimeException(e);
}
}
Expand Down

0 comments on commit e5a0bc1

Please sign in to comment.