Skip to content

Commit 5ebdb75

Browse files
committed
Fix some import order and code style
1 parent 1a2a123 commit 5ebdb75

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

generator/res/content_class.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
package %1$s.%4$s;
22

3+
import %1$s.%5$s.ColumnMetadata;
4+
35
import android.content.ContentValues;
46
import android.database.sqlite.SQLiteDatabase;
57
import android.database.sqlite.SQLiteStatement;
68
import android.net.Uri;
79
import android.provider.BaseColumns;
810
import android.util.Log;
911

10-
import %1$s.%5$s.ColumnMetadata;
11-
1212
/**
1313
* This class was generated by the ContentProviderCodeGenerator project made by Foxykeep
1414
* <p>

generator/res/content_subclass.txt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@
5656
%16$s public static void upgradeTable(SQLiteDatabase db, int oldVersion, int newVersion) {
5757

5858
if (oldVersion < 1) {
59-
Log.i(LOG_TAG, "Upgrading from version " + oldVersion + " to " + newVersion
59+
Log.i(LOG_TAG, "Upgrading from version " + oldVersion + " to " + newVersion
6060
+ ", data will be lost!");
6161

6262
db.execSQL("DROP TABLE IF EXISTS " + TABLE_NAME + ";");
@@ -66,7 +66,7 @@
6666
%17$s
6767

6868
if (oldVersion != newVersion) {
69-
throw new IllegalStateException("Error upgrading the database to version "
69+
throw new IllegalStateException("Error upgrading the database to version "
7070
+ newVersion);
7171
}
7272
}

generator/res/provider.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
package %1$s.%11$s;
22

3+
%2$s
34
import android.content.ContentProvider;
45
import android.content.ContentProviderOperation;
56
import android.content.ContentProviderResult;
@@ -16,7 +17,6 @@ import android.net.Uri;
1617
import android.provider.BaseColumns;
1718
import android.util.Log;
1819

19-
%2$s
2020
import java.util.ArrayList;
2121

2222
/**

0 commit comments

Comments
 (0)