Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Minor] Fix a typo of type parameter in JavaUtils.scala #3789

Closed
wants to merge 3 commits into from

Conversation

sarutak
Copy link
Member

@sarutak sarutak commented Dec 24, 2014

In JavaUtils.scala, thare is a typo of type parameter. In addition, the type information is removed at the time of compile by erasure.

This issue is really minor so I don't file in JIRA.

@@ -80,7 +80,7 @@ private[spark] object JavaUtils {
prev match {
case Some(k) =>
underlying match {
case mm: mutable.Map[a, _] =>
case mm: mutable.Map[_, _] =>
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should this really be A to express the relation to the generic bound? although underlying must already have keys of type A already. It just looks like that was the intent.

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I thought it should be A but the type parameter at the position is no mean because the erasure removes type information at the time of compile.
Even though, should we place A for readability?

@SparkQA
Copy link

SparkQA commented Dec 24, 2014

Test build #24780 has finished for PR 3789 at commit 99f6f63.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@SparkQA
Copy link

SparkQA commented Dec 25, 2014

Test build #24796 has finished for PR 3789 at commit e20193d.

  • This patch passes all tests.
  • This patch merges cleanly.
  • This patch adds no public classes.

@rxin
Copy link
Contributor

rxin commented Dec 29, 2014

Merging in master. Thanks.

@asfgit asfgit closed this in 8d72341 Dec 29, 2014
@sarutak sarutak deleted the fix-typo-in-javautils branch April 11, 2015 05:24
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
4 participants