commonsrdf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ans...@apache.org
Subject [04/18] incubator-commonsrdf git commit: rename seed to salt, which seems more appropriate
Date Mon, 30 Mar 2015 01:09:58 GMT
rename seed to salt, which seems more appropriate

Project: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/commit/bfd037e6
Tree: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/tree/bfd037e6
Diff: http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/diff/bfd037e6

Branch: refs/heads/master
Commit: bfd037e6cf3efa5c9cbb18751ce83014448ceb06
Parents: 7e42cae
Author: Peter Ansell <p_ansell@yahoo.com>
Authored: Sat Mar 28 20:38:49 2015 +1100
Committer: Peter Ansell <p_ansell@yahoo.com>
Committed: Sat Mar 28 20:38:49 2015 +1100

----------------------------------------------------------------------
 .../org/apache/commons/rdf/simple/BlankNodeImpl.java     | 11 ++++-------
 1 file changed, 4 insertions(+), 7 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/incubator-commonsrdf/blob/bfd037e6/simple/src/main/java/org/apache/commons/rdf/simple/BlankNodeImpl.java
----------------------------------------------------------------------
diff --git a/simple/src/main/java/org/apache/commons/rdf/simple/BlankNodeImpl.java b/simple/src/main/java/org/apache/commons/rdf/simple/BlankNodeImpl.java
index 47cc211..e54a7d9 100644
--- a/simple/src/main/java/org/apache/commons/rdf/simple/BlankNodeImpl.java
+++ b/simple/src/main/java/org/apache/commons/rdf/simple/BlankNodeImpl.java
@@ -19,34 +19,31 @@ package org.apache.commons.rdf.simple;
 
 import java.nio.charset.StandardCharsets;
 import java.util.Objects;
-import java.util.Optional;
 import java.util.UUID;
 import java.util.concurrent.atomic.AtomicLong;
 
 import org.apache.commons.rdf.api.BlankNode;
-import org.apache.commons.rdf.api.Graph;
 
 /**
  * A simple implementation of BlankNode.
- *
  */
 final class BlankNodeImpl implements BlankNode {
 
 	private static AtomicLong bnodeCounter = new AtomicLong();
 
-	private static final Object DEFAULT_SEED = new Object();
+	private static final Object DEFAULT_SALT = new Object();
 
 	private final String id;
 
 	public BlankNodeImpl() {
-		this(DEFAULT_SEED, "genid:" + bnodeCounter.incrementAndGet());
+		this(DEFAULT_SALT, "genid:" + bnodeCounter.incrementAndGet());
 	}
 
-	public BlankNodeImpl(Object uuidSeed, String id) {
+	public BlankNodeImpl(Object uuidSalt, String id) {
 		if (Objects.requireNonNull(id).isEmpty()) {
 			throw new IllegalArgumentException("Invalid blank node id: " + id);
 		}
-		String uuidInput = uuidSeed.toString() + ":" + id;
+		String uuidInput = uuidSalt.toString() + ":" + id;
 		// Both the scope and the id are used to create the UUID, ensuring that
 		// a caller can reliably create the same bnode if necessary by sending
 		// in the same scope.


Mime
View raw message