6.2. Design by contract aspects reuse versus lines of code
We have observed that the presence of reusable pointcuts brought some bene¯ts
when the HW system was modi¯ed. In the AO versions of the HW system, there are
sets of reusable pointcut declarations related to the design by contract concern.
These aspects have drastically contributed to the decrease in the overall number of
DbC features of each ¯nal system after the application of the respective change
scenario. These bene¯ts can be observed in the complete analysis of all the change
scenarios of the HW system. As a result, we had a reuse of invariants in each AO
implementation higher than 90%, which give us an overall mean of 93.81% of reuse
against OO decompositions when modularizing the design by contract concern.