Github user srowen commented on a diff in the pull request:
https://github.com/apache/spark/pull/12637#discussion_r60826170
--- Diff:
examples/src/main/java/org/apache/spark/examples/mllib/JavaStratifiedSamplingExample.java
---
@@ -37,22 +37,19 @@ public static void main(String[] args) {
@SuppressWarnings("unchecked")
// $example on$
- List<Tuple2<Integer, Character>> list = new ArrayList<>(
- Arrays.<Tuple2<Integer, Character>>asList(
- new Tuple2(1, 'a'),
- new Tuple2(1, 'b'),
- new Tuple2(2, 'c'),
- new Tuple2(2, 'd'),
- new Tuple2(2, 'e'),
- new Tuple2(3, 'f')
- )
+ List<Tuple2<Integer, Character>> list = Arrays.asList(
--- End diff --
This isn't strictly related, but this generated 12 compiler warnings.
---
If your project is set up for it, you can reply to this email and have your
reply appear on GitHub as well. If your project does not have this feature
enabled and wishes so, or if the feature is enabled but not working, please
contact infrastructure at [email protected] or file a JIRA ticket
with INFRA.
---
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]