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/repo/logging/LoggingQuery.java | 1 + src/main/java/com/amazon/carbonado/repo/logging/LoggingRepository.java | 3 +-- .../com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java | 1 + 3 files changed, 3 insertions(+), 2 deletions(-) (limited to 'src/main/java/com/amazon/carbonado/repo/logging') diff --git a/src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java b/src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java index 6d07801..c4c8414 100644 --- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java +++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingQuery.java @@ -242,6 +242,7 @@ class LoggingQuery implements Query { appendable.append(mQuery.toString()); } + @Override public String toString() { return mQuery.toString(); } diff --git a/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepository.java b/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepository.java index 4032313..3c47857 100644 --- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepository.java +++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepository.java @@ -27,8 +27,6 @@ import com.amazon.carbonado.Storable; import com.amazon.carbonado.Storage; import com.amazon.carbonado.SupportException; import com.amazon.carbonado.Transaction; -import com.amazon.carbonado.TriggerFactory; - import com.amazon.carbonado.capability.Capability; import com.amazon.carbonado.spi.StoragePool; @@ -56,6 +54,7 @@ class LoggingRepository implements Repository, LogAccessCapability { mLog = log; mStoragePool = new StoragePool() { + @Override protected Storage createStorage(Class type) throws RepositoryException { diff --git a/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java b/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java index b8c2892..7463a09 100644 --- a/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java +++ b/src/main/java/com/amazon/carbonado/repo/logging/LoggingRepositoryBuilder.java @@ -148,6 +148,7 @@ public class LoggingRepositoryBuilder extends AbstractRepositoryBuilder { return mRepoBuilder; } + @Override public void errorCheck(Collection messages) throws ConfigurationException { super.errorCheck(messages); if (mRepoBuilder == null) { -- cgit v1.2.3