Skip to content

Commit ecb660e

Browse files
committed
Rename arguments.
1 parent 04be989 commit ecb660e

File tree

1 file changed

+6
-6
lines changed
  • src/main/java/com/github/underscore

1 file changed

+6
-6
lines changed

src/main/java/com/github/underscore/$.java

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -410,9 +410,9 @@ public static <T, E> List<E> where(final List<E> list,
410410

411411
}
412412

413-
public static <T, E> Set<E> where(final Set<E> list,
413+
public static <T, E> Set<E> where(final Set<E> set,
414414
final List<Tuple<String, T>> properties) {
415-
return filter(list, new WherePredicate<E, T>(properties));
415+
return filter(set, new WherePredicate<E, T>(properties));
416416
}
417417

418418
public static <T, E> Optional<E> findWhere(final Iterable<E> iterable,
@@ -1466,12 +1466,12 @@ public static <T> Chain chain(final List<T> list) {
14661466
return new $.Chain<T>(list);
14671467
}
14681468

1469-
public static <T> Chain chain(final Set<T> list) {
1470-
return new $.Chain<T>(newArrayList(list));
1469+
public static <T> Chain chain(final Set<T> set) {
1470+
return new $.Chain<T>(newArrayList(set));
14711471
}
14721472

1473-
public static <T> Chain chain(final T[] list) {
1474-
return new $.Chain<T>(Arrays.asList(list));
1473+
public static <T> Chain chain(final T[] array) {
1474+
return new $.Chain<T>(Arrays.asList(array));
14751475
}
14761476

14771477
public static class Chain<T> {

0 commit comments

Comments
 (0)