]> source.dussan.org Git - aspectj.git/commit
Remove WeavingAdaptor.couldWeave()
authorUri Simchoni <urisimchoni@gmail.com>
Mon, 5 Feb 2024 06:29:32 +0000 (08:29 +0200)
committerAlexander Kriegisch <Alexander@Kriegisch.name>
Thu, 8 Feb 2024 05:03:50 +0000 (12:03 +0700)
commitae96aff0288c32951a84a5351bcd7b58ee40bea2
treece67eb7191edf29e38e2ba88ac15568c1b390247
parent499eee18ed51ee29abf715929f6cdcd6ff68d7b1
Remove WeavingAdaptor.couldWeave()

WeavingAdaptor.couldWeave() tested two things: whether this specific
class (by its name) should be excluded from weaving, and whether the
class has generated classes associated with it (in which case we avoid
weaving to avoid re-creating those generated classes). However, if the
class has generated classes associated, couldWeave() is not called at
all because of the new wovenWithGeneratedClass() test, so we have
only the name test which is now called directly.

Relates to #279.
weaver/src/main/java/org/aspectj/weaver/tools/WeavingAdaptor.java