db-jdo-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From an...@apache.org
Subject svn commit: r723713 - /db/jdo/trunk/api2/src/java/javax/jdo/JDOEnhancer.java
Date Fri, 05 Dec 2008 11:26:09 GMT
Author: andyj
Date: Fri Dec  5 03:26:09 2008
New Revision: 723713

URL: http://svn.apache.org/viewvc?rev=723713&view=rev
Log:
JDO-591 : Fix return type on enhance(), validate() to return number of classes affected as
per comment on JIRA. Updated javadoc for those methods

Modified:
    db/jdo/trunk/api2/src/java/javax/jdo/JDOEnhancer.java

Modified: db/jdo/trunk/api2/src/java/javax/jdo/JDOEnhancer.java
URL: http://svn.apache.org/viewvc/db/jdo/trunk/api2/src/java/javax/jdo/JDOEnhancer.java?rev=723713&r1=723712&r2=723713&view=diff
==============================================================================
--- db/jdo/trunk/api2/src/java/javax/jdo/JDOEnhancer.java (original)
+++ db/jdo/trunk/api2/src/java/javax/jdo/JDOEnhancer.java Fri Dec  5 03:26:09 2008
@@ -103,14 +103,20 @@
     /**
      * Method to enhance the items specified using addJar, addFiles, addClasses, addClass,
      * addPersistenceUnit.
+     * @return Number of classes enhanced
+     * @throws JDOEnhanceException if an error occurs during enhancement. If multiple
+     * errors occur then the nested exceptions provides this detail.
      */
-    void enhance();
+    int enhance();
 
     /**
      * Method to validate the items specified using addJar, addFiles, addClasses, addClass,
      * addPersistenceUnit.
+     * @return Number of classes validated
+     * @throws JDOEnhanceException if an error occurs during validation. If multiple
+     * errors occur then the nested exceptions provides this detail.
      */
-    void validate();
+    int validate();
 
     /**
      * Method to retrieve the (enhanced) bytes of the specified class.



Mime
View raw message