bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r995463 - /incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationProcessor.java
Date Thu, 09 Sep 2010 15:30:33 GMT
Author: mbenson
Date: Thu Sep  9 15:30:33 2010
New Revision: 995463

URL: http://svn.apache.org/viewvc?rev=995463&view=rev
Log:
remove unnecessary null check

Modified:
    incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationProcessor.java

Modified: incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationProcessor.java
URL: http://svn.apache.org/viewvc/incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationProcessor.java?rev=995463&r1=995462&r2=995463&view=diff
==============================================================================
--- incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationProcessor.java
(original)
+++ incubator/bval/sandbox/lang3-work/bval-jsr303/src/main/java/org/apache/bval/jsr303/AnnotationProcessor.java
Thu Sep  9 15:30:33 2010
@@ -138,7 +138,7 @@ public final class AnnotationProcessor {
          */
         Object result =
             SecureActions.getAnnotationValue(annotation, ConstraintAnnotationAttributes.VALUE.getAttributeName());
-        if (result != null && result instanceof Annotation[]) {
+        if (result instanceof Annotation[]) {
             boolean changed = false;
             for (Annotation each : (Annotation[]) result) {
                 changed |= processAnnotation(each, prop, owner, access, appender);



Mime
View raw message