加入压制警告注解

This commit is contained in:
zengfantian 2015-03-11 18:29:20 +08:00
parent d9735f125f
commit e7d1f8b536
1 changed files with 4 additions and 1 deletions

View File

@ -26,6 +26,7 @@ import com.zftlive.android.base.BaseEntity;
* @version 1.0
*
*/
@SuppressWarnings("rawtypes")
public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
private static String databaseName = "default_database";
@ -166,6 +167,7 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
* 获取Dao
* @throws SQLException
*/
@SuppressWarnings("unchecked")
public synchronized <D extends Dao<T, ?>, T> D getDao(Class<T> clazz) throws SQLException {
Dao dao = null;
try {
@ -197,7 +199,8 @@ public class DatabaseHelper extends OrmLiteSqliteOpenHelper {
/**
* 释放资源
*/
@Override
@SuppressWarnings("unused")
@Override
public void close() {
super.close();
for (String key : daoMap.keySet()) {