diff options
author | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-17 19:23:05 +0200 |
---|---|---|
committer | Reinier Zwitserloot <reinier@tipit.to> | 2009-06-17 19:23:05 +0200 |
commit | 4ab2bb7be0ec2ea3e0c61bd2c0e24bee46ff41a8 (patch) | |
tree | 0e269d6850b365b1ca50b3cfba7db56d141a4b6a /contrib | |
parent | 024d8ffa9801f463fecadd16f42d51bbed46dea7 (diff) | |
download | lombok-4ab2bb7be0ec2ea3e0c61bd2c0e24bee46ff41a8.tar.gz lombok-4ab2bb7be0ec2ea3e0c61bd2c0e24bee46ff41a8.tar.bz2 lombok-4ab2bb7be0ec2ea3e0c61bd2c0e24bee46ff41a8.zip |
Turns out using instanceof checks to figure out if a LocalDeclaration is a method argument or not (by instanceof checking if it's an Argument) is faulty, as e.g. the argument to a catch block is also an Argument object. Rewritten the visitChild method to be based on a switch on the Node's getKind(), just like JavacAST. This even looks nicer.
Diffstat (limited to 'contrib')
0 files changed, 0 insertions, 0 deletions