geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From strub...@apache.org
Subject svn commit: r1799996 - in /geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax: decorator/ enterprise/inject/spi/ enterprise/util/
Date Mon, 26 Jun 2017 21:20:10 GMT
Author: struberg
Date: Mon Jun 26 21:20:09 2017
New Revision: 1799996

URL: http://svn.apache.org/viewvc?rev=1799996&view=rev
Log:
GERONIMO-6553 remove redundant initialisers and fix typos

Modified:
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/decorator/Decorator.java
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Annotated.java
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/AnnotatedParameter.java
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/CDI.java
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/AnnotationLiteral.java
    geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/TypeLiteral.java

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/decorator/Decorator.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/decorator/Decorator.java?rev=1799996&r1=1799995&r2=1799996&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/decorator/Decorator.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/decorator/Decorator.java
Mon Jun 26 21:20:09 2017
@@ -37,8 +37,8 @@ import javax.enterprise.inject.Stereotyp
  * @version $Rev$ $Date$
  *
  */
-@Target(value = ElementType.TYPE)
-@Retention(value = RetentionPolicy.RUNTIME)
+@Target(ElementType.TYPE)
+@Retention(RetentionPolicy.RUNTIME)
 @Documented
 @Stereotype
 public @interface Decorator

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Annotated.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Annotated.java?rev=1799996&r1=1799995&r2=1799996&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Annotated.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Annotated.java
Mon Jun 26 21:20:09 2017
@@ -47,7 +47,7 @@ public interface Annotated
     /**
      * Gets annotated element's annotation member if exist, null otherwise
      *
-     * @param <T> generic annotatation class type
+     * @param <T> generic annotation class type
      * @param annotationType class of the annotation
      * @return annotated element's annotation member if exist, null otherwise
      */

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/AnnotatedParameter.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/AnnotatedParameter.java?rev=1799996&r1=1799995&r2=1799996&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/AnnotatedParameter.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/AnnotatedParameter.java
Mon Jun 26 21:20:09 2017
@@ -51,7 +51,7 @@ public interface AnnotatedParameter<X> e
 
     default Parameter getJavaParameter()
     {
-        final Member javaMember = getDeclaringCallable().getJavaMember();
+        Member javaMember = getDeclaringCallable().getJavaMember();
         if (!Executable.class.isInstance(javaMember))
         {
             throw new IllegalStateException("Parameter does not belong to a Constructor or
Method: " + javaMember);

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/CDI.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/CDI.java?rev=1799996&r1=1799995&r2=1799996&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/CDI.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/CDI.java
Mon Jun 26 21:20:09 2017
@@ -64,7 +64,7 @@ public abstract class CDI<T> implements
                 }
             }
         }
-        return INSTANCE; //X TODO implement!
+        return INSTANCE;
     }
 
     /**

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java?rev=1799996&r1=1799995&r2=1799996&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/inject/spi/Unmanaged.java
Mon Jun 26 21:20:09 2017
@@ -80,8 +80,8 @@ public class Unmanaged<T>
         private CreationalContext<T> creationalContext;
         private T instance;
 
-        private boolean injected = false;
-        private boolean disposed = false;
+        private boolean injected;
+        private boolean disposed;
 
         private UnmanagedInstance(BeanManager beanManager, InjectionTarget<T> injectionTarget)
         {

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/AnnotationLiteral.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/AnnotationLiteral.java?rev=1799996&r1=1799995&r2=1799996&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/AnnotationLiteral.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/AnnotationLiteral.java
Mon Jun 26 21:20:09 2017
@@ -42,9 +42,9 @@ public abstract class AnnotationLiteral<
     private Class<T> annotationType;
 
     // cached values
-    private transient Method[] _meths = null;
-    private transient String _toString = null;
-    private transient Integer _hashCode = null;
+    private transient Method[] _meths;
+    private transient String _toString;
+    private transient Integer _hashCode;
     
     private static final Object[] EMPTY_OBJECT_ARRAY = new Object[0];
 
@@ -241,7 +241,7 @@ public abstract class AnnotationLiteral<
     public int hashCode()
     {
         if (_hashCode != null) {
-            return _hashCode.intValue();
+            return _hashCode;
         }
         Method[] methods = getMethods();
 
@@ -304,7 +304,7 @@ public abstract class AnnotationLiteral<
             
             hashCode += name ^ value;
         }
-        _hashCode = Integer.valueOf(hashCode);
+        _hashCode = hashCode;
         return hashCode;
     }
     

Modified: geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/TypeLiteral.java
URL: http://svn.apache.org/viewvc/geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/TypeLiteral.java?rev=1799996&r1=1799995&r2=1799996&view=diff
==============================================================================
--- geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/TypeLiteral.java
(original)
+++ geronimo/specs/trunk/geronimo-jcdi_2.0_spec/src/main/java/javax/enterprise/util/TypeLiteral.java
Mon Jun 26 21:20:09 2017
@@ -112,7 +112,7 @@ public abstract class TypeLiteral<T> imp
     @Override
     public int hashCode()
     {
-        final int prime = 31;
+        int prime = 31;
         int result = 1;
         
         result = prime * result + ((definedType == null) ? 0 : definedType.hashCode());



Mime
View raw message