Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"type": "bugfix",
"category": "DynamoDB Enhanced Client",
"contributor": "",
"description": "Revert problematic change from [#6349](https://github.com/aws/aws-sdk-java-v2/issues/6349)."
}
Original file line number Diff line number Diff line change
Expand Up @@ -180,14 +180,6 @@ private String normalizeSetterName(Method setter) {
return Character.toLowerCase(setterName.charAt(3)) + setterName.substring(4);
}

if (setterName.length() > 2
&& Character.isUpperCase(setterName.charAt(2))
&& setterName.startsWith(IS_PREFIX)
&& isSetterMethodBoolean(setter)) {

return Character.toLowerCase(setterName.charAt(2)) + setterName.substring(3);
}

return setterName;
}

Expand Down Expand Up @@ -216,11 +208,6 @@ private boolean isMethodBoolean(Method method) {
return method.getReturnType() == boolean.class || method.getReturnType() == Boolean.class;
}

private boolean isSetterMethodBoolean(Method setter) {
return setter.getParameterCount() == 1 &&
(setter.getParameterTypes()[0] == boolean.class || setter.getParameterTypes()[0] == Boolean.class);
}

private Optional<Method> extractBuildMethod(Map<String, Method> indexedBuilderMethods, Class<?> immutableClass) {
Method buildMethod = indexedBuilderMethods.get(BUILD_METHOD);

Expand Down

This file was deleted.

Loading