geronimo-scm mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dblev...@apache.org
Subject svn commit: r483277 - /geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
Date Wed, 06 Dec 2006 22:53:31 GMT
Author: dblevins
Date: Wed Dec  6 14:53:30 2006
New Revision: 483277

URL: http://svn.apache.org/viewvc?view=rev&rev=483277
Log:
Fixed handling of param attributes

Modified:
    geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java

Modified: geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
URL: http://svn.apache.org/viewvc/geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java?view=diff&rev=483277&r1=483276&r2=483277
==============================================================================
--- geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
(original)
+++ geronimo/xbean/trunk/xbean-finder/src/main/java/org/apache/xbean/finder/ClassFinder.java
Wed Dec  6 14:53:30 2006
@@ -576,8 +576,10 @@
 
         public List<AnnotationInfo> getParameterAnnotations(int index) {
             if (index >= parameterAnnotations.size()) {
-                List<AnnotationInfo> annotationInfos = new ArrayList<AnnotationInfo>();
-                parameterAnnotations.add(index, annotationInfos);
+                for (int i = parameterAnnotations.size(); i <= index; i++) {
+                    List<AnnotationInfo> annotationInfos = new ArrayList<AnnotationInfo>();
+                    parameterAnnotations.add(i, annotationInfos);
+                }
             }
             return parameterAnnotations.get(index);
         }



Mime
View raw message