[jboss-cvs] JBossAS SVN: r70497 - projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins.
jboss-cvs-commits at lists.jboss.org
jboss-cvs-commits at lists.jboss.org
Thu Mar 6 12:00:39 EST 2008
Author: adrian at jboss.org
Date: 2008-03-06 12:00:38 -0500 (Thu, 06 Mar 2008)
New Revision: 70497
Modified:
projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractConstructorMetaData.java
Log:
This should be a debug message and remove unused code
Modified: projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractConstructorMetaData.java
===================================================================
--- projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractConstructorMetaData.java 2008-03-06 16:58:44 UTC (rev 70496)
+++ projects/microcontainer/trunk/kernel/src/main/org/jboss/beans/metadata/plugins/AbstractConstructorMetaData.java 2008-03-06 17:00:38 UTC (rev 70497)
@@ -262,28 +262,8 @@
// currently value constructor supports only values that are instances of class itself
// this will add another instance with the same class to context
ClassInfo type = beanInfo.getClassInfo();
- log.warn("Constructing bean from injection value: results in multiple beans with same class type - " + type);
+ log.debug("Constructing bean from injection value: results in multiple beans with same class type - " + type);
return type;
-/*
- // find all constructors with single value
- Set<ConstructorInfo> constructors = beanInfo.getConstructors();
- Set<ConstructorInfo> matchingConstructorInfos = new HashSet<ConstructorInfo>();
- if (constructors != null)
- {
- for (ConstructorInfo ci : constructors)
- {
- if (ci.getParameters() != null && ci.getParameters().length == 1)
- {
- matchingConstructorInfos.add(ci);
- }
- }
- }
- if (matchingConstructorInfos.size() != 1)
- {
- throw new IllegalArgumentException("Should not be here - illegal size of matching constructors: " + this);
- }
- return applyCollectionOrMapCheck(matchingConstructorInfos.iterator().next().getParameterTypes()[0].getType());
-*/
}
}
}
More information about the jboss-cvs-commits
mailing list