[exo-jcr-commits] exo-jcr SVN: r5505 - kernel/branches/2.4.x/exo.kernel.commons/src/main/java/org/exoplatform/commons/utils.
do-not-reply at jboss.org
do-not-reply at jboss.org
Tue Jan 24 07:38:41 EST 2012
Author: dkuleshov
Date: 2012-01-24 07:38:40 -0500 (Tue, 24 Jan 2012)
New Revision: 5505
Modified:
kernel/branches/2.4.x/exo.kernel.commons/src/main/java/org/exoplatform/commons/utils/SecurityHelper.java
Log:
EXOJCR-1707: Changed validation method's parameters, since no need to pass more than one Permission to be validated
Modified: kernel/branches/2.4.x/exo.kernel.commons/src/main/java/org/exoplatform/commons/utils/SecurityHelper.java
===================================================================
--- kernel/branches/2.4.x/exo.kernel.commons/src/main/java/org/exoplatform/commons/utils/SecurityHelper.java 2012-01-24 12:17:40 UTC (rev 5504)
+++ kernel/branches/2.4.x/exo.kernel.commons/src/main/java/org/exoplatform/commons/utils/SecurityHelper.java 2012-01-24 12:38:40 UTC (rev 5505)
@@ -325,15 +325,12 @@
*
* @throws AccessControlException
*/
- public static void validateSecurityPermissions(RuntimePermission... perms)
+ public static void validateSecurityPermission(Permission permission)
{
SecurityManager security = System.getSecurityManager();
if (security != null)
{
- for (Permission permission : perms)
- {
security.checkPermission(permission);
- }
}
}
}
More information about the exo-jcr-commits
mailing list