Skip to content

Commit

Permalink
Updated function name
Browse files Browse the repository at this point in the history
  • Loading branch information
akats7 committed Jul 31, 2023
1 parent f886400 commit 4c96c83
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,7 @@ class MBeanHelper {

def ofInterest = isSingle ? [mbeans[0]]: mbeans
return ofInterest.collect {
getBeanAttributeTransform(it, attribute)
getBeanAttributeWithTransform(it, attribute)
}
}

Expand All @@ -117,11 +117,11 @@ class MBeanHelper {
def ofInterest = isSingle ? [mbeans[0]]: mbeans
return [ofInterest, attributes].combinations().collect { pair ->
def (bean, attribute) = pair
new Tuple3(bean, attribute, getBeanAttributeTransform(bean, attribute))
new Tuple3(bean, attribute, getBeanAttributeWithTransform(bean, attribute))
}
}

Object getBeanAttributeTransform(GroovyMBean bean, String attribute){
Object getBeanAttributeWithTransform(GroovyMBean bean, String attribute){
def transformationClosure = attributeTransformation.get(attribute);
return transformationClosure != null ? transformationClosure(bean) : getBeanAttribute(bean, attribute)
}
Expand Down

0 comments on commit 4c96c83

Please sign in to comment.