Skip to content

Commit fdf216f

Browse files
author
nicolaiparlog
committed
Improve comments in existing transformation demos
1 parent 3ad5cdf commit fdf216f

File tree

3 files changed

+8
-2
lines changed

3 files changed

+8
-2
lines changed

src/demo/java/org/codefx/libfx/collection/transform/EqualityTransformingSetDemo.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ public static void main(String[] args) {
3939
}
4040

4141
private void addSomeElements() {
42+
print("-- Adding some elements --");
43+
print();
44+
4245
lengthSet.add("a");
4346
lengthSet.add("b");
4447
print(lengthSet.toString());

src/demo/java/org/codefx/libfx/collection/transform/OptionalTransformingSetDemo.java

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,13 @@ public class OptionalTransformingSetDemo {
1515
// #begin FIELDS
1616

1717
/**
18-
* The inner set, which - for some strange
18+
* The inner set, which - for some strange reason - contains {@link Optional}s.
1919
*/
2020
private final Set<Optional<String>> innerSet;
2121

22+
/**
23+
* The transformation without {@link Optional}.
24+
*/
2225
private final Set<String> transformingSet;
2326

2427
// #end FIELDS

src/demo/java/org/codefx/libfx/collection/transform/TransformingSetDemo.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ public class TransformingSetDemo {
2222
private final Set<String> innerSet;
2323

2424
/**
25-
* A view ion the set which uses integers instead.
25+
* A view on the set which uses integers instead.
2626
*/
2727
private final Set<Integer> transformingSet;
2828

0 commit comments

Comments
 (0)