• Home
  • Features
  • Pricing
  • Docs
  • Announcements
  • Sign In

aspectran / aspectran / #4728
44%

Build:
DEFAULT BRANCH: master
Ran 29 Oct 2025 12:59PM UTC
Jobs 1
Files 1012
Run time 4min
Badge
Embed ▾
README BADGES
x

If you need to use a raster PNG badge, change the '.svg' to '.png' in the link

Markdown

Textile

RDoc

HTML

Rst

29 Oct 2025 12:56PM UTC coverage: 37.66% (-0.02%) from 37.683%
#4728

push

github

topframe
Refactor AspectRegistry for performance and thread-safety

This commit refactors core components of the aspect registry for improved performance, thread-safety, and clarity.

The RelevantAspectRuleHolder is now an immutable object to ensure it can be safely shared and cached in a concurrent environment. This change adheres to the project's convention of using null for empty collections to minimize object allocation and GC pressure.

Key improvements in AdviceRuleRegistry:
 - Fixed a major O(n^2) performance issue in find...Index methods by using a for-each loop for LinkedList iteration.
 - Corrected the use of ArrayList to LinkedList for addFirst operations to ensure O(1) complexity.
 - Improved code clarity with a switch statement and better variable naming.

25 of 55 new or added lines in 6 files covered. (45.45%)

1 existing line in 1 file now uncovered.

15602 of 41429 relevant lines covered (37.66%)

0.38 hits per line

New Missed Lines in Diff

Lines Coverage ∆ File
1
62.16
3.19% core/src/main/java/com/aspectran/core/component/aspect/AspectRuleRegistry.java
4
50.88
-7.02% core/src/main/java/com/aspectran/core/component/aspect/pointcut/AbstractPointcut.java
5
26.09
9.42% core/src/main/java/com/aspectran/core/component/aspect/RelevantAspectRuleHolder.java
20
0.0
0.0% core/src/main/java/com/aspectran/core/component/aspect/AdviceRuleRegistry.java

Uncovered Existing Lines

Lines Coverage ∆ File
1
26.09
9.42% core/src/main/java/com/aspectran/core/component/aspect/RelevantAspectRuleHolder.java
Jobs
ID Job ID Ran Files Coverage
1 #4728.1 29 Oct 2025 12:59PM UTC 1012
37.66
Source Files on build #4728
  • Tree
  • List 1012
  • Changed 6
  • Source Changed 6
  • Coverage Changed 6
Coverage ∆ File Lines Relevant Covered Missed Hits/Line
  • Back to Repo
  • aeb51f10 on github
  • Prev Build on master
  • Next Build on master
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc