Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Appearance settings

Commit d9807ec

Browse filesBrowse files
committed
Fix examples
1 parent 585384a commit d9807ec
Copy full SHA for d9807ec

File tree

3 files changed

+3
-3
lines changed
Filter options

3 files changed

+3
-3
lines changed

‎src/app/src/main/java/servicestack/net/javalinqexamples/AggregateOperators.java

Copy file name to clipboardExpand all lines: src/app/src/main/java/servicestack/net/javalinqexamples/AggregateOperators.java
-2Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -399,6 +399,4 @@ public Double reduce(Double balance, Integer nextWithdrawal) {
399399

400400
Log.d("Ending balance: " + endBalance);
401401
}
402-
403-
404402
}

‎src/app/src/main/java/servicestack/net/javalinqexamples/Partitioning.java

Copy file name to clipboardExpand all lines: src/app/src/main/java/servicestack/net/javalinqexamples/Partitioning.java
+2Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,6 +66,7 @@ public Tuple3<String, Integer, Date> apply(Order o) {
6666
),
6767
3);
6868

69+
Log.d("First 3 orders in WA:");
6970
for (Tuple3<?, ?, ?> o : first3WAOrders) {
7071
Log.d(o);
7172
}
@@ -108,6 +109,7 @@ public Tuple3<String, Integer, Date> apply(Order o) {
108109
),
109110
2);
110111

112+
Log.d("All but first 2 orders in WA:");
111113
for (Tuple3<?, ?, ?> o : allButFirst2Orders) {
112114
Log.d(o);
113115
}

‎src/app/src/main/java/servicestack/net/javalinqexamples/Projections.java

Copy file name to clipboardExpand all lines: src/app/src/main/java/servicestack/net/javalinqexamples/Projections.java
+1-1Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -323,7 +323,7 @@ public List<String> apply(Customer cust, final int custIndex) {
323323
return map(cust.orders, new Function<Order, String>() {
324324
@Override
325325
public String apply(Order o) {
326-
return "Customer #" + (custIndex + 1) + " has an oder with OrderID " + o.orderId;
326+
return "Customer #" + (custIndex + 1) + " has an order with OrderID " + o.orderId;
327327
}
328328
});
329329
}

0 commit comments

Comments
0 (0)
Morty Proxy This is a proxified and sanitized view of the page, visit original site.