bval-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From mben...@apache.org
Subject svn commit: r1346870 - in /bval/trunk/bval-core/src/main/java/org/apache/bval/model: FeaturesCapable.java MetaBean.java
Date Wed, 06 Jun 2012 13:05:12 GMT
Author: mbenson
Date: Wed Jun  6 13:05:11 2012
New Revision: 1346870

URL: http://svn.apache.org/viewvc?rev=1346870&view=rev
Log:
[BVAL-106] Avoid compilation failures on Java 7 due to accessing private members of generic
types (even when the specific members belong to the accessing class\!) by simply removing
the generics from the method in question.

Modified:
    bval/trunk/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java
    bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaBean.java

Modified: bval/trunk/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java
URL: http://svn.apache.org/viewvc/bval/trunk/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java?rev=1346870&r1=1346869&r2=1346870&view=diff
==============================================================================
--- bval/trunk/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java (original)
+++ bval/trunk/bval-core/src/main/java/org/apache/bval/model/FeaturesCapable.java Wed Jun
 6 13:05:11 2012
@@ -141,10 +141,9 @@ public abstract class FeaturesCapable im
      * Copy this {@link FeaturesCapable} into another {@link FeaturesCapable}
      * instance.
      * 
-     * @param <T>
      * @param target
      */
-    protected <T extends FeaturesCapable> void copyInto(T target) {
+    protected void copyInto(FeaturesCapable target) {
         target.features = target.createFeaturesMap();
         target.features.putAll(features);
         if (validations != null) {

Modified: bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaBean.java
URL: http://svn.apache.org/viewvc/bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaBean.java?rev=1346870&r1=1346869&r2=1346870&view=diff
==============================================================================
--- bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaBean.java (original)
+++ bval/trunk/bval-core/src/main/java/org/apache/bval/model/MetaBean.java Wed Jun  6 13:05:11
2012
@@ -212,7 +212,7 @@ public class MetaBean extends FeaturesCa
      * {@inheritDoc}
      */
     @Override
-    protected <T extends FeaturesCapable> void copyInto(T target) {
+    protected void copyInto(FeaturesCapable target) {
         super.copyInto(target);
         final MetaBean copy = (MetaBean) target;
         if (properties != null) {



Mime
View raw message