Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorThomas Watson2013-07-01 19:34:16 +0000
committerThomas Watson2013-07-01 19:34:16 +0000
commitb463d47debfb3728078ac973670b2cfbaded18d5 (patch)
treed77b13ebf6728caf8e57a8b3f0668db69fb390e7 /bundles/org.eclipse.osgi
parent9e7bf1c83241aad974a5b79180e5290effa8ad94 (diff)
downloadrt.equinox.framework-b463d47debfb3728078ac973670b2cfbaded18d5.tar.gz
rt.equinox.framework-b463d47debfb3728078ac973670b2cfbaded18d5.tar.xz
rt.equinox.framework-b463d47debfb3728078ac973670b2cfbaded18d5.zip
[Bug 411829] StorageHookFactory validates factory class of StorageHook
at creation time. - change createStorageHook to protected to prevent classes outside of the package from calling it.
Diffstat (limited to 'bundles/org.eclipse.osgi')
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/StorageHookFactory.java2
-rw-r--r--bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/signedcontent/SignedStorageHook.java4
2 files changed, 3 insertions, 3 deletions
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/StorageHookFactory.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/StorageHookFactory.java
index ab75c5bab..44593557d 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/StorageHookFactory.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/hookregistry/StorageHookFactory.java
@@ -85,7 +85,7 @@ public abstract class StorageHookFactory<S, L, H extends StorageHookFactory.Stor
* @param generation the generation for the storage hook
* @return a storage hook
*/
- public abstract H createStorageHook(Generation generation);
+ protected abstract H createStorageHook(Generation generation);
/**
* Creates a storage hook for the specified generation and checks that the
diff --git a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/signedcontent/SignedStorageHook.java b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/signedcontent/SignedStorageHook.java
index c47eff2cb..a30cf63a7 100644
--- a/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/signedcontent/SignedStorageHook.java
+++ b/bundles/org.eclipse.osgi/container/src/org/eclipse/osgi/internal/signedcontent/SignedStorageHook.java
@@ -1,5 +1,5 @@
/*******************************************************************************
- * Copyright (c) 2006, 2012 IBM Corporation and others. All rights reserved.
+ * Copyright (c) 2006, 2013 IBM Corporation and others. All rights reserved.
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v1.0 which accompanies this distribution,
* and is available at http://www.eclipse.org/legal/epl-v10.html
@@ -35,7 +35,7 @@ public class SignedStorageHook extends StorageHookFactory<List<SignerInfo>, List
}
@Override
- public StorageHookImpl createStorageHook(Generation generation) {
+ protected StorageHookImpl createStorageHook(Generation generation) {
return new StorageHookImpl(generation);
}

Back to the top