Closed birariro closed 1 week ago
Hello @OlgaMaciaszek
String getName(ConfigurableBeanFactory beanFactory, Map<String, Object> attributes)
Because the only way to call is String getName(Map<String, Object> attributes)
Isn't beanFactory always null?
And
/* for testing */ String getName(Map<String, Object> attributes)
If you look at the comments, it says it's for testing, but if it's unnecessary, it looked better without it
Keep the for testing comment
@birariro It's helpful to know that the visibility level has been raised or sth has been added for testing purposes. That's why we put these comments there, but actually in this case, if we remove the other overloaded method, it should be Visible for testing
. Feel free to change to that. I thought getName
was also called at a different point, but possibly after some refactoring it isn't, so right, we can change that.
@OlgaMaciaszek I have applied the changes as requested.
getName (Map<String, Object>)
does not need to be for test purposes.