Skip to content

Commit

Permalink
@NotNull已被移除
Browse files Browse the repository at this point in the history
  • Loading branch information
Lyphy999 committed Aug 30, 2017
1 parent 0781287 commit 24bcff9
Showing 1 changed file with 8 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@

import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.support.annotation.NonNull;
import android.util.Log;

import java.util.ArrayList;
Expand All @@ -27,7 +26,14 @@ public abstract class AbsTableUpgrader {
protected int oldVersion;
protected SQLiteDatabase db;//或者使用SQLiteDatabase代表更通用一点

public AbsTableUpgrader(SQLiteDatabase db, int newVersion, int oldVersion, @NonNull String tableName) {
/**
*
* @param db
* @param newVersion
* @param oldVersion
* @param tableName 请保持该参数为非空
*/
public AbsTableUpgrader(SQLiteDatabase db, int newVersion, int oldVersion,String tableName) {
this.tableName = tableName;
this.newVersion = newVersion;
this.oldVersion = oldVersion;
Expand Down

0 comments on commit 24bcff9

Please sign in to comment.