if (obj != null) {
return decodeEntry(obj, stmt);
}
- if (module.getRevision().isPresent()) {
+ if (module.revision() != null) {
throw new IllegalArgumentException("Failed to find prefix for statement " + stmt);
}
Entry<QNameModule, ?> match = null;
for (var entry : lookup.entrySet()) {
final var ns = entry.getKey();
- if (module.equals(ns.withoutRevision()) && (match == null
- || Revision.compare(match.getKey().getRevision(), ns.getRevision()) < 0)) {
+ if (module.equals(ns.withoutRevision())
+ && (match == null || Revision.compare(match.getKey().revision(), ns.revision()) < 0)) {
match = entry;
}
}