Skip to content

Conversation

@HyukjinKwon
Copy link
Member

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.

@HyukjinKwon
Copy link
Member Author

HyukjinKwon commented Sep 18, 2016

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
Copy link
Member

srowen commented Sep 18, 2016

OK, there was already a JIRA for this, but it's OK. https://issues.apache.org/jira/browse/SPARK-17542

@HyukjinKwon
Copy link
Member Author

Oh, I should've double-checked. Thank you for pointing this out.

@HyukjinKwon
Copy link
Member Author

BTW, I will try to fix multiple warnnings together for next time.

@SparkQA
Copy link

SparkQA commented Sep 18, 2016

Test build #65578 has finished for PR 15141 at commit 9ec094f.

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

@srowen
Copy link
Member

srowen commented Sep 18, 2016

Merged to master/2.0

@asfgit asfgit closed this in 7151011 Sep 18, 2016
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>

Closes apache#15141 from HyukjinKwon/SPARK-17586.
@HyukjinKwon HyukjinKwon deleted the SPARK-17586 branch January 2, 2018 03:39
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants