You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Nested classes are a convenient way of grouping relevant recipes together, that would otherwise be spread over a large number of files and harder to maintain. Consider the case where we replace StringUtils methods; there it would be convenient to have a wrapper ApacheCommonsStringUtils class that contains multiple nested classes for each of the replaced methods.
When I try to do that now a wrapper Recipe class is generated, but the inner Recipe classes aren't static, so creating instances of those fails with serialization.
Describe the solution you'd like
Static inner classes.
Have you considered any alternatives or workarounds?
What problem are you trying to solve?
Nested classes are a convenient way of grouping relevant recipes together, that would otherwise be spread over a large number of files and harder to maintain. Consider the case where we replace
StringUtils
methods; there it would be convenient to have a wrapperApacheCommonsStringUtils
class that contains multiple nested classes for each of the replaced methods.When I try to do that now a wrapper Recipe class is generated, but the inner Recipe classes aren't static, so creating instances of those fails with serialization.
Describe the solution you'd like
Static inner classes.
Have you considered any alternatives or workarounds?
Not really; open to suggestions.
Additional context
The text was updated successfully, but these errors were encountered: