java-design-patterns
java-design-patterns copied to clipboard
fix issue 1968 and correct visitor pattern code
fix issue 1968 and correct visitor pattern code
Modified issue with visitor mode code, changed different method name to method reload, fixed issue1968.
Pull request description
The main modification of the method in the class is visit, which is accessed only by different parameter types, eliminating some errors and simplifying code writing, in line with the pattern requirements.
this PR helps for solve #1968
@ohbus I have remove all the comment, thanks a lot!