Author: sdumitriu
Date: 2007-12-18 16:42:30 +0100 (Tue, 18 Dec 2007)
New Revision: 6406

Modified:
   
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R6079XWIKI1878Migrator.java
Log:
[cleanup] Apply codestyle, fix some javadoc, rename a variable.


Modified: 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R6079XWIKI1878Migrator.java
===================================================================
--- 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R6079XWIKI1878Migrator.java
      2007-12-18 15:35:31 UTC (rev 6405)
+++ 
xwiki-platform/core/trunk/xwiki-core/src/main/java/com/xpn/xwiki/store/migration/hibernate/R6079XWIKI1878Migrator.java
      2007-12-18 15:42:30 UTC (rev 6406)
@@ -27,12 +27,11 @@
 import com.xpn.xwiki.store.migration.XWikiDBVersion;
 
 /**
- * Migration for XWIKI1878: Fix xwikircs table isdiff data not matching RCS 
state of some revisions (when the state
- * says "full" the isdiff column in the database should be false).
- *
- * Note: This migrator should only be executed if the R4359XWIKI1459 one has 
already been executed (i.e. if the
- * database is in version < 4360). This is because this current migrator is 
because of a bug in R4359XWIKI1459 which
- * has now been fixed.  
+ * Migration for XWIKI1878: Fix xwikircs table isdiff data not matching RCS 
state of some revisions
+ * (when the state says "full" the isdiff column in the database should be 
false). Note: This
+ * migrator should only be executed if the R4359XWIKI1459 one has already been 
executed in a
+ * previous migration (i.e. if the database is in version >= 4360). This is 
because this current
+ * migrator is because of a bug in R4359XWIKI1459 which has now been fixed.
  * 
  * @version $Id: $
  */
@@ -41,15 +40,16 @@
     /** logger. */
     private static final Log LOG = 
LogFactory.getLog(R6079XWIKI1878Migrator.class);
 
-    private int previousVersion;
+    private int startupVersion;
 
     public R6079XWIKI1878Migrator(int currentVersionBeforeMigratorsExecute)
     {
-        this.previousVersion = currentVersionBeforeMigratorsExecute;
+        this.startupVersion = currentVersionBeforeMigratorsExecute;
     }
 
     /**
      * [EMAIL PROTECTED]
+     * 
      * @see 
com.xpn.xwiki.store.migration.hibernate.AbstractXWikiHibernateMigrator#getName()
      */
     public String getName()
@@ -59,6 +59,7 @@
 
     /**
      * [EMAIL PROTECTED]
+     * 
      * @see AbstractXWikiHibernateMigrator#getDescription()
      */
     public String getDescription()
@@ -73,9 +74,10 @@
     }
 
     /** [EMAIL PROTECTED] */
-    public void migrate(XWikiHibernateMigrationManager manager, final 
XWikiContext context) throws XWikiException
+    public void migrate(XWikiHibernateMigrationManager manager, final 
XWikiContext context)
+        throws XWikiException
     {
-        if (this.previousVersion >= 4360) {
+        if (this.startupVersion >= 4360) {
             super.migrate(manager, context, LOG);
         }
     }

_______________________________________________
notifications mailing list
[email protected]
http://lists.xwiki.org/mailman/listinfo/notifications

Reply via email to