squid:S1118 - Utility classes should not have public constructors (#281)

This commit is contained in:
Mohamed Ezzat
2016-04-28 18:45:39 +02:00
committed by inorichi
parent 2e6fc70353
commit 9f546d13c2
7 changed files with 35 additions and 7 deletions

View File

@@ -2,7 +2,7 @@ package eu.kanade.tachiyomi.data.database.tables;
import android.support.annotation.NonNull;
public class ChapterTable {
public final class ChapterTable {
@NonNull
public static final String TABLE = "chapters";
@@ -34,6 +34,10 @@ public class ChapterTable {
@NonNull
public static final String COLUMN_CHAPTER_NUMBER = "chapter_number";
private ChapterTable() throws InstantiationException {
throw new InstantiationException("This class is not for instantiation");
}
@NonNull
public static String getCreateTableQuery() {
return "CREATE TABLE " + TABLE + "("

View File

@@ -2,7 +2,7 @@ package eu.kanade.tachiyomi.data.database.tables;
import android.support.annotation.NonNull;
public class MangaSyncTable {
public final class MangaSyncTable {
public static final String TABLE = "manga_sync";
@@ -24,6 +24,10 @@ public class MangaSyncTable {
public static final String COLUMN_TOTAL_CHAPTERS = "total_chapters";
private MangaSyncTable() throws InstantiationException {
throw new InstantiationException("This class is not for instantiation");
}
@NonNull
public static String getCreateTableQuery() {
return "CREATE TABLE " + TABLE + "("