Closed faradaj closed 8 years ago
Love it. Will merge when build passes.
Great and :+1: for super-fast response as this should've been already resolved within #112 :)
I always forget about the constructor synthetics too, or I would have commented on that original one.
Just like preventing synthetic methods' logging (resolved in #112), synthetic constructor of a
@DebugLog
annotated inner class also should not be logged by Hugo.Note: When the private constructor of an inner class is used, in addition to the synthetic constructor, an empty class will be created by compiler. At least for now, this is not a problem for Hugo. (i.e. Hugo is interested in methods and constructors.)
To demonstrate, access modifier of
Charmer
class' constructor is changed toprivate
.Before this, Hugo was logging for
Charmer
class' synthetic constructor too:With this, Hugo now logs: