From ab92f4ec859413b2d3612068dfb21d741fb389a3 Mon Sep 17 00:00:00 2001 From: "Brian S. O'Neill" Date: Tue, 6 May 2008 13:52:12 +0000 Subject: Code cleanup: add @Override annotations, remove unused imports, remove dead code and add @Deprecated annotations. --- src/main/java/com/amazon/carbonado/sequence/SequenceValueGenerator.java | 1 + .../java/com/amazon/carbonado/sequence/SequenceValueProducerPool.java | 2 ++ 2 files changed, 3 insertions(+) (limited to 'src/main/java/com/amazon/carbonado/sequence') diff --git a/src/main/java/com/amazon/carbonado/sequence/SequenceValueGenerator.java b/src/main/java/com/amazon/carbonado/sequence/SequenceValueGenerator.java index 6d8e655..b033919 100644 --- a/src/main/java/com/amazon/carbonado/sequence/SequenceValueGenerator.java +++ b/src/main/java/com/amazon/carbonado/sequence/SequenceValueGenerator.java @@ -214,6 +214,7 @@ public class SequenceValueGenerator extends AbstractSequenceValueProducer { * @throws PersistException for fetch/persist failure or if sequence is * exhausted for int values. */ + @Override public int nextIntValue() throws PersistException { try { synchronized (mStoredSequence) { diff --git a/src/main/java/com/amazon/carbonado/sequence/SequenceValueProducerPool.java b/src/main/java/com/amazon/carbonado/sequence/SequenceValueProducerPool.java index ccebda3..b2949dc 100644 --- a/src/main/java/com/amazon/carbonado/sequence/SequenceValueProducerPool.java +++ b/src/main/java/com/amazon/carbonado/sequence/SequenceValueProducerPool.java @@ -47,6 +47,7 @@ public abstract class SequenceValueProducerPool * * @param name name of sequence */ + @Override public SequenceValueProducer get(String name) throws RepositoryException { return (SequenceValueProducer) super.get(name); } @@ -69,6 +70,7 @@ public abstract class SequenceValueProducerPool } } + @Override protected final SequenceValueProducer create(String name) throws RepositoryException { return createSequenceValueProducer(name); } -- cgit v1.2.3