@@ -81,7 +81,8 @@ public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int
8181 * @param name of the database file, or null for an in-memory database
8282 * @param factory to use for creating cursor objects, or null for the default
8383 * @param version number of the database (starting at 1); if the database is older,
84- * {@link #onUpgrade} will be used to upgrade the database
84+ * {@link #onUpgrade} will be used to upgrade the database; if the database is
85+ * newer, {@link #onDowngrade} will be used to downgrade the database
8586 * @param errorHandler the {@link DatabaseErrorHandler} to be used when sqlite reports database
8687 * corruption.
8788 */
@@ -100,7 +101,7 @@ public SQLiteOpenHelper(Context context, String name, CursorFactory factory, int
100101 }
101102
102103 /**
103- * Return the name of the SQLite database being opened, as given tp
104+ * Return the name of the SQLite database being opened, as given to
104105 * the constructor.
105106 */
106107 public String getDatabaseName () {
@@ -297,7 +298,7 @@ public synchronized void close() {
297298 public abstract void onUpgrade (SQLiteDatabase db , int oldVersion , int newVersion );
298299
299300 /**
300- * Called when the database needs to be downgraded. This is stricly similar to
301+ * Called when the database needs to be downgraded. This is strictly similar to
301302 * onUpgrade() method, but is called whenever current version is newer than requested one.
302303 * However, this method is not abstract, so it is not mandatory for a customer to
303304 * implement it. If not overridden, default implementation will reject downgrade and
0 commit comments