litesuits / android-lite-orm

LiteOrm is a fast, small, powerful ORM framework for Android. LiteOrm makes you do CRUD operarions on SQLite database with a sigle line of code efficiently.
http://litesuits.com?form=gorm
Apache License 2.0
1.49k stars 362 forks source link

warning: non-varargs call of varargs method with inexact argument type for last parameter; #48

Open t2krew opened 7 years ago

t2krew commented 7 years ago
/Users/krew/Android/service/android/app/src/main/java/com/service/DbUtils.java:69: warning: non-varargs call of varargs method with inexact argument type for last parameter;
        return liteOrm.<T>query(new QueryBuilder(cla).where(field + "=?", value));
                                                                          ^
  cast to Object for a varargs call
  cast to Object[] for a non-varargs call and to suppress this warning
/Users/krew/Android/service/android/app/src/main/java/com/service/DbUtils.java:83: warning: non-varargs call of varargs method with inexact argument type for last parameter;
        return liteOrm.<T>query(new QueryBuilder(cla).where(field + "=?", value).limit(start, length));
                                                                          ^
  cast to Object for a varargs call
  cast to Object[] for a non-varargs call and to suppress this warning
Note: /Users/krew/Android/service/android/app/src/main/java/com/service/DbUtils.java uses unchecked or unsafe operations.
Note: Recompile with -Xlint:unchecked for details.
2 warnings