Uh oh!
There was an error while loading. Please reload this page.
[SPARK-17586][BUILD] Do not call static member via instance reference - #15141
Closed
HyukjinKwon wants to merge 1 commit into
Closed
[SPARK-17586][BUILD] Do not call static member via instance reference#15141HyukjinKwon wants to merge 1 commit into
HyukjinKwon wants to merge 1 commit into
Conversation
MemberAuthor
This was found during checking the logs in AppVeyor tests - https://ci.appveyor.com/project/HyukjinKwon/spark/build/108-pr-15131-path#L988 It seems this is only the case. cc @srowen |
srowen
commented
Sep 18, 2016
Member
OK, there was already a JIRA for this, but it's OK. https://issues.apache.org/jira/browse/SPARK-17542 |
HyukjinKwon
commented
Sep 18, 2016
MemberAuthor
Oh, I should've double-checked. Thank you for pointing this out. |
HyukjinKwon
commented
Sep 18, 2016
MemberAuthor
BTW, I will try to fix multiple warnnings together for next time. |
SparkQA
commented
Sep 18, 2016
Test build #65578 has finished for PR 15141 at commit
|
srowen
commented
Sep 18, 2016
Member
Merged to master/2.0 |
asfgit pushed a commit
that referenced
this pull request
Sep 18, 2016
## What changes were proposed in this pull request? This PR fixes a warning message as below: ``` [WARNING] .../UnsafeInMemorySorter.java:284: warning: [static] static method should be qualified by type name, TaskMemoryManager, instead of by an expression [WARNING] currentPageNumber = memoryManager.decodePageNumber(recordPointer) ``` by referencing the static member via class not instance reference. ## How was this patch tested? Existing tests should cover this - Jenkins tests. Author: hyukjinkwon <gurwls223@gmail.com> Closes#15141 from HyukjinKwon/SPARK-17586. (cherry picked from commit 7151011) Signed-off-by: Sean Owen <sowen@cloudera.com>
wgtmac pushed a commit
to wgtmac/spark
that referenced
this pull request
Sep 19, 2016
## What changes were proposed in this pull request? This PR fixes a warning message as below: ``` [WARNING] .../UnsafeInMemorySorter.java:284: warning: [static] static method should be qualified by type name, TaskMemoryManager, instead of by an expression [WARNING] currentPageNumber = memoryManager.decodePageNumber(recordPointer) ``` by referencing the static member via class not instance reference. ## How was this patch tested? Existing tests should cover this - Jenkins tests. Author: hyukjinkwon <gurwls223@gmail.com> Closesapache#15141 from HyukjinKwon/SPARK-17586.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for freeto join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changes were proposed in this pull request?
This PR fixes a warning message as below:
by referencing the static member via class not instance reference.
How was this patch tested?
Existing tests should cover this - Jenkins tests.