summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorCarsten Drossel2009-01-09 03:30:15 (EST)
committerCarsten Drossel2009-01-09 03:30:15 (EST)
commit3c29baba448f1f76e47f8ab4e88aab3dc3950b6b (patch)
tree603366325577929a585cb9c2d047d1e8eddb0b80
parentd50a41fe94f4d9b74ee3a8718d9ed1b95a29eed9 (diff)
downloadorg.eclipse.riena-3c29baba448f1f76e47f8ab4e88aab3dc3950b6b.zip
org.eclipse.riena-3c29baba448f1f76e47f8ab4e88aab3dc3950b6b.tar.gz
org.eclipse.riena-3c29baba448f1f76e47f8ab4e88aab3dc3950b6b.tar.bz2
removed unreachable code
-rw-r--r--org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/RienaPolicy.java32
1 files changed, 0 insertions, 32 deletions
diff --git a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/RienaPolicy.java b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/RienaPolicy.java
index 68a9999..7cefd44 100644
--- a/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/RienaPolicy.java
+++ b/org.eclipse.riena.security.common/src/org/eclipse/riena/security/common/authorization/RienaPolicy.java
@@ -10,8 +10,6 @@
*******************************************************************************/
package org.eclipse.riena.security.common.authorization;
-import java.lang.reflect.InvocationTargetException;
-import java.lang.reflect.Method;
import java.security.CodeSource;
import java.security.Permission;
import java.security.PermissionCollection;
@@ -60,36 +58,6 @@ public class RienaPolicy extends Policy {
RienaPolicy rp = new RienaPolicy();
Policy.setPolicy(rp);
defaultPolicy = new PolicyFile();
- // TODO Is this true!!!
- if (true) {
- return;
- }
- try {
- Class<?> clz = RienaPolicy.class.getClassLoader().getSystemClassLoader().loadClass(
- "org.eclipse.riena.security.common.policyproxy.PolicyProxy"); //$NON-NLS-1$
- Method method = clz.getMethod("setRealPolicy", Policy.class); //$NON-NLS-1$
- method.invoke(clz, rp);
- } catch (ClassNotFoundException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (SecurityException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (NoSuchMethodException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalArgumentException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (IllegalAccessException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- } catch (InvocationTargetException e) {
- // TODO Auto-generated catch block
- e.printStackTrace();
- }
- // PolicyProxy.setRealPolicy(rp);
-
}
/*