Skip to content

Commit

Permalink
review fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
raphaelsolarski committed Oct 29, 2024
1 parent 905b89f commit db13611
Showing 1 changed file with 2 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -387,12 +387,8 @@ object propertyAccessors {
protected def checkAccessIfMethodFound(targetClass: Class[_], onlyStaticMethods: Boolean = false)(
methodOpt: Option[Method]
): Option[Method] = {
methodOpt match {
case s @ Some(method) =>
checkAccessForMethodName(targetClass, method.getName, onlyStaticMethods)
s
case None => None
}
methodOpt.foreach(method => checkAccessForMethodName(targetClass, method.getName, onlyStaticMethods))
methodOpt
}

protected def checkAccessForMethodName(
Expand Down

0 comments on commit db13611

Please sign in to comment.