Skip to content

Commit

Permalink
fix code format issues
Browse files Browse the repository at this point in the history
  • Loading branch information
amodolo committed Aug 3, 2023
1 parent b65a925 commit 4ba926c
Showing 1 changed file with 6 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -59,8 +59,8 @@ static Set<String> getPropertiesNamesOf(Class<?> clazz) {

private static String toPropertyName(String methodName) {
String propertyWithCapitalLetter = methodName.startsWith(GET_PREFIX)
? methodName.substring(GET_PREFIX.length())
: methodName.substring(IS_PREFIX.length());
? methodName.substring(GET_PREFIX.length())
: methodName.substring(IS_PREFIX.length());
return propertyWithCapitalLetter.toLowerCase().charAt(0) + propertyWithCapitalLetter.substring(1);
}

Expand All @@ -69,11 +69,10 @@ public static Set<Method> gettersIncludingInheritedOf(Class<?> clazz) {
}

private static Set<Method> gettersOf(Class<?> clazz) {
return stream(clazz.getMethods())
.filter(method -> !belongsToFundamentalPackage(method))
.filter(method -> !isStatic(method))
.filter(ComparingProperties::isGetter)
.collect(toCollection(LinkedHashSet::new));
return stream(clazz.getMethods()).filter(method -> !belongsToFundamentalPackage(method))
.filter(method -> !isStatic(method))
.filter(ComparingProperties::isGetter)
.collect(toCollection(LinkedHashSet::new));
}

private static boolean belongsToFundamentalPackage(Method method) {
Expand Down

0 comments on commit 4ba926c

Please sign in to comment.