summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSteve Powell2010-12-03 07:23:58 (EST)
committer Glyn Normington2010-12-03 07:23:58 (EST)
commit068099dfc77bffbf21dba92f6948bcfa53211542 (patch)
tree50f486a619b07abd13d16255f677f6c20b2e84d2
parent144c8cc50d1a5161114c66a7f9a030f179985190 (diff)
downloadorg.eclipse.virgo.artifact-repository-068099dfc77bffbf21dba92f6948bcfa53211542.zip
org.eclipse.virgo.artifact-repository-068099dfc77bffbf21dba92f6948bcfa53211542.tar.gz
org.eclipse.virgo.artifact-repository-068099dfc77bffbf21dba92f6948bcfa53211542.tar.bz2
tidy up some warnings
-rw-r--r--org.eclipse.virgo.repository/.settings/org.eclipse.jdt.core.prefs12
-rw-r--r--org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/external/AntPathMatchingFileSystemSearcher.java1
-rw-r--r--org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/watched/WatchedStorageRepository.java2
-rw-r--r--org.eclipse.virgo.repository/src/test/java/org/eclipse/virgo/repository/internal/eventlog/DynamicDelegationEventLoggerTests.java3
4 files changed, 4 insertions, 14 deletions
diff --git a/org.eclipse.virgo.repository/.settings/org.eclipse.jdt.core.prefs b/org.eclipse.virgo.repository/.settings/org.eclipse.jdt.core.prefs
deleted file mode 100644
index 467d04b..0000000
--- a/org.eclipse.virgo.repository/.settings/org.eclipse.jdt.core.prefs
+++ /dev/null
@@ -1,12 +0,0 @@
-#Tue Dec 02 09:36:55 GMT 2008
-eclipse.preferences.version=1
-org.eclipse.jdt.core.compiler.codegen.inlineJsrBytecode=enabled
-org.eclipse.jdt.core.compiler.codegen.targetPlatform=1.5
-org.eclipse.jdt.core.compiler.codegen.unusedLocal=preserve
-org.eclipse.jdt.core.compiler.compliance=1.5
-org.eclipse.jdt.core.compiler.debug.lineNumber=generate
-org.eclipse.jdt.core.compiler.debug.localVariable=generate
-org.eclipse.jdt.core.compiler.debug.sourceFile=generate
-org.eclipse.jdt.core.compiler.problem.assertIdentifier=error
-org.eclipse.jdt.core.compiler.problem.enumIdentifier=error
-org.eclipse.jdt.core.compiler.source=1.5
diff --git a/org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/external/AntPathMatchingFileSystemSearcher.java b/org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/external/AntPathMatchingFileSystemSearcher.java
index 9fb3191..0f90830 100644
--- a/org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/external/AntPathMatchingFileSystemSearcher.java
+++ b/org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/external/AntPathMatchingFileSystemSearcher.java
@@ -117,6 +117,7 @@ public final class AntPathMatchingFileSystemSearcher implements FileSystemSearch
}
}
+ @Override
public String toString() {
return this.antPathPattern;
}
diff --git a/org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/watched/WatchedStorageRepository.java b/org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/watched/WatchedStorageRepository.java
index 83546c7..b454b34 100644
--- a/org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/watched/WatchedStorageRepository.java
+++ b/org.eclipse.virgo.repository/src/main/java/org/eclipse/virgo/repository/internal/watched/WatchedStorageRepository.java
@@ -97,6 +97,7 @@ public final class WatchedStorageRepository extends LocalRepository implements
/**
* Start the base repository and periodic checking.
*/
+ @Override
public void start() {
super.start();
LOGGER.info("Starting to watch directory '{}'; period {}s.", this.watchDirectory, this.watchInterval);
@@ -110,6 +111,7 @@ public final class WatchedStorageRepository extends LocalRepository implements
/**
* Stop watching the repository store and stop the base repository.
*/
+ @Override
public void stop() {
LOGGER.info("Stopping watched directory '{}'.", this.watchDirectory);
this.executorService.shutdown();
diff --git a/org.eclipse.virgo.repository/src/test/java/org/eclipse/virgo/repository/internal/eventlog/DynamicDelegationEventLoggerTests.java b/org.eclipse.virgo.repository/src/test/java/org/eclipse/virgo/repository/internal/eventlog/DynamicDelegationEventLoggerTests.java
index 457c951..d417a5a 100644
--- a/org.eclipse.virgo.repository/src/test/java/org/eclipse/virgo/repository/internal/eventlog/DynamicDelegationEventLoggerTests.java
+++ b/org.eclipse.virgo.repository/src/test/java/org/eclipse/virgo/repository/internal/eventlog/DynamicDelegationEventLoggerTests.java
@@ -30,9 +30,8 @@ import org.eclipse.virgo.teststubs.osgi.support.ObjectClassFilter;
*/
public class DynamicDelegationEventLoggerTests {
- @SuppressWarnings("unchecked")
@Test
- public void dynamicDelegation() {
+ public void dynamicDelegation() throws Exception {
StubBundleContext bundleContext = new StubBundleContext();
bundleContext.addFilter(new ObjectClassFilter(EventLogger.class));