Skip to content

Commit

Permalink
Fixes code smells
Browse files Browse the repository at this point in the history
  • Loading branch information
moarychan committed Jan 10, 2025
1 parent 952bd7c commit 9816725
Showing 1 changed file with 1 addition and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ public class TestPropertiesUtils {
public static final Set<String> BUILT_IN_MEMBER_VARIABLE_NAMES =
Set.of("client", "credential", "environment", "exponential", "fixed", "profile", "proxy", "retry");

public static final Class<?>[] NO_SETTER_PROPERTIES_CLASSES = new Class[] {
public static final Class<?>[] NO_SETTER_PROPERTIES_CLASSES = new Class<?>[] {
AmqpClientProperties.class,
AmqpProxyProperties.class,
AmqpRetryProperties.class,
Expand Down Expand Up @@ -60,10 +60,6 @@ public static String groupMethodName(Method method) {
return OTHERS_METHOD;
}

public static boolean isMatchedGetter(Method getter, String varName) {
return getter.getName().equals("get" + varName) || getter.getName().equals("is" + varName);
}

public static boolean isGetter(Method method) {
if (!method.getName().startsWith("get") && !method.getName().startsWith("is")) {
return false;
Expand Down

0 comments on commit 9816725

Please sign in to comment.