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

slub / urnlib / 44070997384
96%
main: 96%

Build:
Build:
LAST BUILD BRANCH: refactor/resolve-review-findings
DEFAULT BRANCH: main
Ran 17 Nov 2026 11:07AM UTC
Jobs 1
Files 21
Run time 1min
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

17 Nov 2026 11:02AM UTC coverage: 95.933% (-0.7%) from 96.615%
44070997384

push

github

claussni
Add normalize(), assignedName() and URN-equivalence to URNs and their parts

equals() compares URNs exactly as given. Whether two URNs name the same
thing is a separate question, answered by the equivalence rules of
RFC 2141, section 5 and RFC 8141, section 3, and by the rules of a
namespace.

- URN, NamespaceIdentifier and NamespaceSpecificString get an abstract
  normalize() returning the normal form of the same type: lower-case
  NID, upper-case hex digits in percent-encoded octets.
- NamespaceSpecificString gets the protected normalForm(String) hook, so
  that implementations for a particular namespace can add their rules.
- URN.assignedName() returns the URN without r-, q- and f-components.
- isEquivalentTo() on all three applies the rules of the receiver to the
  other object, which may be of any type. URN.areEquivalent() asks both
  URNs.

urn.normalize().assignedName() is a key for collections that are to
treat equivalent URNs as the same.

The abstract methods are a breaking change for third-party subclasses.

334 of 352 branches covered (94.89%)

Branch coverage included in aggregate %.

468 of 484 relevant lines covered (96.69%)

4.99 hits per line

Coverage Regressions

Lines Coverage ∆ File
2
85.71
-14.29% de/slub/urn/NID_RFC2141.java
2
80.77
-6.19% de/slub/urn/NID_RFC8141.java
2
77.78
-22.22% de/slub/urn/NSS_RFC2141.java
2
88.89
-11.11% de/slub/urn/NSS_RFC8141.java
Jobs
ID Job ID Ran Files Coverage
1 44070997384.1 17 Nov 2026 11:07AM UTC 21
95.93
GitHub Action Run
Source Files on build 44070997384
  • Tree
  • List 21
  • Changed 10
  • Source Changed 0
  • Coverage Changed 10
Coverage ∆ File Lines Relevant Covered Missed Hits/Line Branch Hits Branch Misses
  • Back to Repo
  • Github Actions Build #44070997384
  • c734692f on github
  • Prev Build on fix/percent-encoding-roundtrip (#44070997213)
STATUS · Troubleshooting · Open an Issue · Sales · Support · CAREERS · ENTERPRISE · START FREE TRIAL · SCHEDULE DEMO
ANNOUNCEMENTS · TWITTER · TOS & SLA · Supported CI Services · What's a CI service? · Automated Testing

© 2026 Coveralls, Inc