litesuits / litesuits/android-lite-orm

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

Open
#48 0 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Dominant language
Java
Stars
1.5k
Forks
359
PR merge metrics
No merged PRs in 30d

Description

```shell
/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.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.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
```

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start in android/app/src/main/java/com/service/DbUtils.java at lines 69 and 83, where QueryBuilder.where receives the varargs argument and the compiler reports warnings. Rebuild with the relevant compiler warnings enabled and confirm both warnings are resolved without changing query behavior.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
database
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.