Skip to content

Commit

Permalink
Merge pull request #602 from SiebelsTim/improve-api
Browse files Browse the repository at this point in the history
Make SugarRecord API more versatile
  • Loading branch information
sibelius authored Sep 2, 2016
2 parents cdaefd4 + dabff00 commit ca5dd14
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions library/src/main/java/com/orm/SugarRecord.java
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ public static <T> T findById(Class<T> type, Integer id) {
return findById(type, Long.valueOf(id));
}

public static <T> List<T> findById(Class<T> type, String[] ids) {
public static <T> List<T> findById(Class<T> type, String... ids) {
String whereClause = "id IN (" + QueryBuilder.generatePlaceholders(ids.length) + ")";
return find(type, whereClause, ids);
}
Expand Down Expand Up @@ -251,7 +251,7 @@ public static <T> long count(Class<T> type) {
return count(type, null, null, null, null, null);
}

public static <T> long count(Class<T> type, String whereClause, String[] whereArgs) {
public static <T> long count(Class<T> type, String whereClause, String... whereArgs) {
return count(type, whereClause, whereArgs, null, null, null);
}

Expand Down

0 comments on commit ca5dd14

Please sign in to comment.