java-design-patterns icon indicating copy to clipboard operation
java-design-patterns copied to clipboard

fix issue 1968 and correct visitor pattern code

Open xyllq999 opened this issue 2 years ago • 4 comments

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.

xyllq999 avatar Apr 23 '22 16:04 xyllq999

this PR helps for solve #1968

xyllq999 avatar Apr 24 '22 11:04 xyllq999

@ohbus I have remove all the comment, thanks a lot!

xyllq999 avatar Jul 27 '22 08:07 xyllq999