You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@jena.apache.org by an...@apache.org on 2026/04/07 13:02:35 UTC
(jena) 03/05: Improve argument naming
This is an automated email from the ASF dual-hosted git repository.
andy pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/jena.git
commit 598b553493182913fe4bdbb086ab812b4439e6b2
Author: Andy Seaborne <an...@apache.org>
AuthorDate: Sun Apr 5 20:11:20 2026 +0100
Improve argument naming
---
.../main/java/org/apache/jena/sparql/core/Match.java | 18 +++++++++---------
1 file changed, 9 insertions(+), 9 deletions(-)
diff --git a/jena-arq/src/main/java/org/apache/jena/sparql/core/Match.java b/jena-arq/src/main/java/org/apache/jena/sparql/core/Match.java
index 4dcd5aa98c..4796cf8b68 100644
--- a/jena-arq/src/main/java/org/apache/jena/sparql/core/Match.java
+++ b/jena-arq/src/main/java/org/apache/jena/sparql/core/Match.java
@@ -33,22 +33,22 @@ public class Match {
/**
* Match a quad. A quad matches g/s/p/o if each component matches the corresponding node.
*/
- public static boolean match(Quad quad, Node g, Node s, Node p, Node o) {
+ public static boolean match(Quad quad, Node matchG, Node matchS, Node matchP, Node matchO) {
return
- match(quad.getGraph(), g) &&
- match(quad.getSubject(), s) &&
- match(quad.getPredicate(), p) &&
- match(quad.getObject(), o);
+ match(quad.getGraph(), matchG) &&
+ match(quad.getSubject(), matchS) &&
+ match(quad.getPredicate(), matchP) &&
+ match(quad.getObject(), matchO);
}
/**
* Match a triple. A triple matches s/p/o if each component matches the corresponding node.
*/
- public static boolean match(Triple triple, Node s, Node p, Node o) {
+ public static boolean match(Triple triple, Node matchS, Node matchP, Node matchO) {
return
- match(triple.getSubject(), s) &&
- match(triple.getPredicate(), p) &&
- match(triple.getObject(), o);
+ match(triple.getSubject(), matchS) &&
+ match(triple.getPredicate(), matchP) &&
+ match(triple.getObject(), matchO);
}
/**