]> 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:17:55 +0000 (12:17 +0700)
commit82da6700027abcd575e4a372e1d55e841f17e89f
treece67eb7191edf29e38e2ba88ac15568c1b390247
parentefef3c0792f521256fc3889744878ead11f8324a
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