myfaces-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From gpetra...@apache.org
Subject svn commit: r1073512 - in /myfaces/extensions/cdi/trunk: core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/security/ core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/util/ core/impl/src/main/java/org/apache/myfaces/exte...
Date Tue, 22 Feb 2011 21:19:03 GMT
Author: gpetracek
Date: Tue Feb 22 21:19:02 2011
New Revision: 1073512

URL: http://svn.apache.org/viewvc?rev=1073512&view=rev
Log:
cleanup

Modified:
    myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/security/AccessDecisionVoter.java
    myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/util/ClassUtils.java
    myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/ClassDeactivation.java
    myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/CodiUtils.java
    myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/SecurityUtils.java
    myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/conversation/grouped/qualifier/QualifierInstances.java
    myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/security/ForcedViolationVoter.java
    myfaces/extensions/cdi/trunk/jee-modules/bv-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/bv/impl/ValidatorFactoryStorage.java
    myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/config/view/ViewConfigCache.java
    myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/ExceptionUtils.java
    myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/JsfUtils.java
    myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/RequestCache.java
    myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/SecurityUtils.java
    myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter1.java
    myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter2.java
    myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/inline/pages/order/TestAccessDecisionVoter3.java
    myfaces/extensions/cdi/trunk/jse-modules/message-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/message/impl/formatter/FormatterBuilder.java
    myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/scripting/impl/util/ExceptionUtils.java

Modified: myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/security/AccessDecisionVoter.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/security/AccessDecisionVoter.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/security/AccessDecisionVoter.java
(original)
+++ myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/security/AccessDecisionVoter.java
Tue Feb 22 21:19:02 2011
@@ -20,6 +20,7 @@ package org.apache.myfaces.extensions.cd
 
 import javax.interceptor.InvocationContext;
 import java.util.Set;
+import java.io.Serializable;
 
 /**
  * Interface for implementing concrete voters.
@@ -29,7 +30,7 @@ import java.util.Set;
  * 
  * @author Gerhard Petracek
  */
-public interface AccessDecisionVoter
+public interface AccessDecisionVoter extends Serializable
 {
     /**
      * Checks the permission for the given {@link javax.interceptor.InvocationContext}.

Modified: myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/util/ClassUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/util/ClassUtils.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/util/ClassUtils.java
(original)
+++ myfaces/extensions/cdi/trunk/core/api/src/main/java/org/apache/myfaces/extensions/cdi/core/api/util/ClassUtils.java
Tue Feb 22 21:19:02 2011
@@ -18,6 +18,7 @@
  */
 package org.apache.myfaces.extensions.cdi.core.api.util;
 
+import javax.enterprise.inject.Typed;
 import java.security.AccessController;
 import java.security.PrivilegedAction;
 import java.util.jar.Manifest;
@@ -27,8 +28,13 @@ import java.net.URL;
 /**
  * @author Gerhard Petracek
  */
+@Typed()
 public class ClassUtils
 {
+    private ClassUtils()
+    {
+    }
+
     /**
      * Detect the right ClassLoader.
      * The lookup order is determined by:

Modified: myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/ClassDeactivation.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/ClassDeactivation.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/ClassDeactivation.java
(original)
+++ myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/ClassDeactivation.java
Tue Feb 22 21:19:02 2011
@@ -21,14 +21,20 @@ package org.apache.myfaces.extensions.cd
 import org.apache.myfaces.extensions.cdi.core.api.AbstractClassDeactivator;
 import org.apache.myfaces.extensions.cdi.core.api.ClassDeactivator;
 
+import javax.enterprise.inject.Typed;
 import java.util.logging.Logger;
 
 /**
  * @author Gerhard Petracek
  */
+@Typed()
 public class ClassDeactivation
 {
-    private static Logger logger = Logger.getLogger(ClassDeactivation.class.getName());
+    private static final Logger LOGGER = Logger.getLogger(ClassDeactivation.class.getName());
+
+    private ClassDeactivation()
+    {
+    }
 
     public static boolean isClassActivated(Class targetClass)
     {
@@ -61,13 +67,13 @@ public class ClassDeactivation
         }
         else
         {
-            logger.info("used class deactivator: " + classDeactivator.toString());
+            LOGGER.info("used class deactivator: " + classDeactivator.toString());
 
             // display deactivated classes here once
             // NOTE that isClassActivated() will be called many times for the same class
             for (Class<?> deactivatedClass : classDeactivator.getDeactivatedClasses())
             {
-                logger.info("deactivate: " + deactivatedClass);
+                LOGGER.info("deactivate: " + deactivatedClass);
             }
         }
 

Modified: myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/CodiUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/CodiUtils.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/CodiUtils.java
(original)
+++ myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/CodiUtils.java
Tue Feb 22 21:19:02 2011
@@ -30,6 +30,7 @@ import javax.enterprise.inject.spi.Annot
 import javax.enterprise.inject.spi.Bean;
 import javax.enterprise.inject.spi.BeanManager;
 import javax.enterprise.inject.spi.InjectionTarget;
+import javax.enterprise.inject.Typed;
 import javax.enterprise.util.Nonbinding;
 import java.io.IOException;
 import java.io.InputStream;
@@ -48,10 +49,15 @@ import java.util.Arrays;
  * This is a collection of a few useful static helper functions.
  * <p/>
  */
+@Typed()
 public class CodiUtils
 {
     private static final Object[] EMPTY_OBJECT_ARRAY = new Object[0];
 
+    private CodiUtils()
+    {
+    }
+
     public static <T> T createNewInstanceOfBean(CreationalContext<T> creationalContext,
Bean<T> bean)
     {
         return createNewInstanceOfBean(bean, creationalContext);

Modified: myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/SecurityUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/SecurityUtils.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/SecurityUtils.java
(original)
+++ myfaces/extensions/cdi/trunk/core/impl/src/main/java/org/apache/myfaces/extensions/cdi/core/impl/util/SecurityUtils.java
Tue Feb 22 21:19:02 2011
@@ -25,14 +25,20 @@ import org.apache.myfaces.extensions.cdi
 
 import javax.interceptor.InvocationContext;
 import javax.enterprise.inject.spi.BeanManager;
+import javax.enterprise.inject.Typed;
 import java.util.List;
 import java.util.Set;
 
 /**
  * @author Gerhard Petracek
  */
+@Typed()
 public class SecurityUtils
 {
+    private SecurityUtils()
+    {
+    }
+
     public static void invokeVoters(InvocationContext invocationContext,
                                     BeanManager beanManager,
                                     List<Class<? extends AccessDecisionVoter>>
accessDecisionVoters,

Modified: myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/conversation/grouped/qualifier/QualifierInstances.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/conversation/grouped/qualifier/QualifierInstances.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/conversation/grouped/qualifier/QualifierInstances.java
(original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/conversation/grouped/qualifier/QualifierInstances.java
Tue Feb 22 21:19:02 2011
@@ -19,6 +19,7 @@
 package org.apache.myfaces.examples.codi.jsf12.conversation.grouped.qualifier;
 
 import javax.enterprise.util.AnnotationLiteral;
+import javax.enterprise.inject.Typed;
 
 /**
  * optional
@@ -26,8 +27,13 @@ import javax.enterprise.util.AnnotationL
  * @author Jakob Korherr
  * @author Gerhard Petracek
  */
+@Typed()
 public class QualifierInstances
 {
+    private QualifierInstances()
+    {
+    }
+
     private static class QualifierAnnotation extends AnnotationLiteral<Qualifier3>
implements Qualifier3
     {
         private static final long serialVersionUID = 6638619823102047921L;

Modified: myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/security/ForcedViolationVoter.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/security/ForcedViolationVoter.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/security/ForcedViolationVoter.java
(original)
+++ myfaces/extensions/cdi/trunk/examples/jsf-playground/hello_myfaces-codi_jsf12/src/main/java/org/apache/myfaces/examples/codi/jsf12/security/ForcedViolationVoter.java
Tue Feb 22 21:19:02 2011
@@ -34,6 +34,8 @@ import java.util.Set;
 @ApplicationScoped
 public class ForcedViolationVoter extends AbstractAccessDecisionVoter
 {
+    private static final long serialVersionUID = -3321616879108078874L;
+
     @Inject
     @Jsf
     private MessageContext messageContext;

Modified: myfaces/extensions/cdi/trunk/jee-modules/bv-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/bv/impl/ValidatorFactoryStorage.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/bv-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/bv/impl/ValidatorFactoryStorage.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/bv-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/bv/impl/ValidatorFactoryStorage.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/bv-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/bv/impl/ValidatorFactoryStorage.java
Tue Feb 22 21:19:02 2011
@@ -22,17 +22,23 @@ import org.apache.myfaces.extensions.cdi
 
 import javax.validation.ValidatorFactory;
 import javax.validation.Validation;
+import javax.enterprise.inject.Typed;
 import java.util.Map;
 import java.util.concurrent.ConcurrentHashMap;
 
 /**
  * @author Gerhard Petracek
  */
+@Typed()
 class ValidatorFactoryStorage
 {
     private static Map<ClassLoader, ValidatorFactory> defaultValidatorFactoryCache
             = new ConcurrentHashMap<ClassLoader, ValidatorFactory>();
 
+    private ValidatorFactoryStorage()
+    {
+    }
+
     static ValidatorFactory getOrCreateValidatorFactory()
     {
         ClassLoader classLoader = getClassLoader();

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/config/view/ViewConfigCache.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/config/view/ViewConfigCache.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/config/view/ViewConfigCache.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/config/view/ViewConfigCache.java
Tue Feb 22 21:19:02 2011
@@ -33,11 +33,14 @@ import java.util.Collection;
 
 import static org.apache.myfaces.extensions.cdi.jsf.impl.util.ExceptionUtils.*;
 
+import javax.enterprise.inject.Typed;
+
 /**
  * TODO move exceptions to util class
  *
  * @author Gerhard Petracek
  */
+@Typed()
 public class ViewConfigCache
 {
     //we don't need a ConcurrentHashMap - write access is only allowed during the startup
(by one thread)
@@ -66,6 +69,10 @@ public class ViewConfigCache
             lazyInitAllowed =
             new HashMap<ClassLoader, Boolean>();
 
+    private ViewConfigCache()
+    {
+    }
+
     static void activateWriteMode()
     {
         setLazyInit(false);

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/ExceptionUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/ExceptionUtils.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/ExceptionUtils.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/ExceptionUtils.java
Tue Feb 22 21:19:02 2011
@@ -30,14 +30,20 @@ import org.apache.myfaces.extensions.cdi
 import org.apache.myfaces.extensions.cdi.jsf.api.listener.phase.AfterPhase;
 
 import javax.faces.event.PhaseId;
+import javax.enterprise.inject.Typed;
 import java.lang.reflect.Method;
 
 /**
  * @author Gerhard Petracek
  */
 //TODO create CODI exceptions
+@Typed()
 public class ExceptionUtils
 {
+    private ExceptionUtils()
+    {
+    }
+
     public static RuntimeException tooManyOpenWindowException(int windowContextTimeoutInMinutes)
     {
         return new RuntimeException("Too many active windows/tabs have been opened!" +

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/JsfUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/JsfUtils.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/JsfUtils.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/JsfUtils.java
Tue Feb 22 21:19:02 2011
@@ -27,6 +27,7 @@ import javax.faces.application.FacesMess
 import javax.faces.event.PhaseListener;
 import javax.faces.lifecycle.Lifecycle;
 import javax.faces.lifecycle.LifecycleFactory;
+import javax.enterprise.inject.Typed;
 import java.io.UnsupportedEncodingException;
 import java.net.URLEncoder;
 import java.util.Iterator;
@@ -41,8 +42,13 @@ import java.util.HashSet;
  *
  * @author Gerhard Petracek
  */
+@Typed()
 public class JsfUtils
 {
+    private JsfUtils()
+    {
+    }
+
     public static void resetConversationCache()
     {
         RequestCache.resetConversationCache();

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/RequestCache.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/RequestCache.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/RequestCache.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/RequestCache.java
Tue Feb 22 21:19:02 2011
@@ -25,12 +25,14 @@ import org.apache.myfaces.extensions.cdi
 import org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.ConversationKey;
 import org.apache.myfaces.extensions.cdi.jsf.impl.scope.conversation.spi.EditableConversation;
 
+import javax.enterprise.inject.Typed;
 import java.util.Map;
 import java.util.HashMap;
 
 /**
  * @author Gerhard Petracek
  */
+@Typed()
 public class RequestCache
 {
     private static ThreadLocal<WindowContext> windowContextCache = new ThreadLocal<WindowContext>();
@@ -44,6 +46,10 @@ public class RequestCache
     private static ThreadLocal<Map<ConversationKey, EditableConversation>> conversationCache
             = new ThreadLocal<Map<ConversationKey, EditableConversation>>();
 
+    protected RequestCache()
+    {
+    }
+
     public static void resetCache()
     {
         windowContextManagerCache.set(null);

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/SecurityUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/SecurityUtils.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/SecurityUtils.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/jsf/impl/util/SecurityUtils.java
Tue Feb 22 21:19:02 2011
@@ -31,15 +31,21 @@ import org.apache.myfaces.extensions.cdi
 import org.apache.myfaces.extensions.cdi.jsf.impl.config.view.ViewConfigCache;
 
 import javax.faces.context.FacesContext;
+import javax.enterprise.inject.Typed;
 import java.util.Set;
 
 /**
  * @author Gerhard Petracek
  */
+@Typed()
 public class SecurityUtils
 {
     private static final Jsf JSF_QUALIFIER = DefaultAnnotation.of(Jsf.class);
 
+    private SecurityUtils()
+    {
+    }
+
     public static void tryToHandleSecurityViolation(RuntimeException runtimeException)
     {
         AccessDeniedException exception = extractException(runtimeException);

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter1.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter1.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter1.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter1.java
Tue Feb 22 21:19:02 2011
@@ -29,6 +29,8 @@ import java.util.Set;
  */
 class TestAccessDecisionVoter1 implements AccessDecisionVoter
 {
+    private static final long serialVersionUID = 4846398165384356791L;
+
     public Set<SecurityViolation> checkPermission(InvocationContext invocationContext)
     {
         //do nothing

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter2.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter2.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter2.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/TestAccessDecisionVoter2.java
Tue Feb 22 21:19:02 2011
@@ -29,6 +29,8 @@ import java.util.Set;
  */
 class TestAccessDecisionVoter2 implements AccessDecisionVoter
 {
+    private static final long serialVersionUID = 181155776784988183L;
+
     public Set<SecurityViolation> checkPermission(InvocationContext invocationContext)
     {
         //do nothing

Modified: myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/inline/pages/order/TestAccessDecisionVoter3.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/inline/pages/order/TestAccessDecisionVoter3.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/inline/pages/order/TestAccessDecisionVoter3.java
(original)
+++ myfaces/extensions/cdi/trunk/jee-modules/jsf-module/impl/src/test/java/org/apache/myfaces/extensions/cdi/jsf/test/impl/config/view/inline/pages/order/TestAccessDecisionVoter3.java
Tue Feb 22 21:19:02 2011
@@ -29,6 +29,8 @@ import java.util.Set;
  */
 class TestAccessDecisionVoter3 implements AccessDecisionVoter
 {
+    private static final long serialVersionUID = -4768654044521911173L;
+
     public Set<SecurityViolation> checkPermission(InvocationContext invocationContext)
     {
         //do nothing

Modified: myfaces/extensions/cdi/trunk/jse-modules/message-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/message/impl/formatter/FormatterBuilder.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jse-modules/message-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/message/impl/formatter/FormatterBuilder.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jse-modules/message-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/message/impl/formatter/FormatterBuilder.java
(original)
+++ myfaces/extensions/cdi/trunk/jse-modules/message-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/message/impl/formatter/FormatterBuilder.java
Tue Feb 22 21:19:02 2011
@@ -25,6 +25,10 @@ import org.apache.myfaces.extensions.cdi
  */
 public class FormatterBuilder
 {
+    private FormatterBuilder()
+    {
+    }
+
     public static Formatter createFormatter(Class<?> type)
     {
         if (Number.class.isAssignableFrom(type))

Modified: myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/scripting/impl/util/ExceptionUtils.java
URL: http://svn.apache.org/viewvc/myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/scripting/impl/util/ExceptionUtils.java?rev=1073512&r1=1073511&r2=1073512&view=diff
==============================================================================
--- myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/scripting/impl/util/ExceptionUtils.java
(original)
+++ myfaces/extensions/cdi/trunk/jse-modules/scripting-module/impl/src/main/java/org/apache/myfaces/extensions/cdi/scripting/impl/util/ExceptionUtils.java
Tue Feb 22 21:19:02 2011
@@ -22,11 +22,18 @@ import org.apache.myfaces.extensions.cdi
 import org.apache.myfaces.extensions.cdi.scripting.api.language.Language;
 import org.apache.myfaces.extensions.cdi.scripting.api.ScriptBuilder;
 
+import javax.enterprise.inject.Typed;
+
 /**
  * @author Gerhard Petracek
  */
+@Typed()
 public class ExceptionUtils
 {
+    private ExceptionUtils()
+    {
+    }
+
     public static RuntimeException unknownScriptingLanguage(String name)
     {
         return new RuntimeException("No scripting engine found for: " + name);



Mime
View raw message