Skip to content

Commit

Permalink
[SPARK-21875][BUILD] Fix Java style bugs
Browse files Browse the repository at this point in the history
## What changes were proposed in this pull request?

Fix Java code style so `./dev/lint-java` succeeds

## How was this patch tested?

Run `./dev/lint-java`

Author: Andrew Ash <[email protected]>

Closes apache#19088 from ash211/spark-21875-lint-java.
  • Loading branch information
ash211 authored and HyukjinKwon committed Aug 31, 2017
1 parent d8f4540 commit 313c6ca
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,8 @@ public class TaskMemoryManager {
* Maximum supported data page size (in bytes). In principle, the maximum addressable page size is
* (1L &lt;&lt; OFFSET_BITS) bytes, which is 2+ petabytes. However, the on-heap allocator's
* maximum page size is limited by the maximum amount of data that can be stored in a long[]
* array, which is (2^31 - 1) * 8 bytes (or about 17 gigabytes). Therefore, we cap this at 17 gigabytes.
* array, which is (2^31 - 1) * 8 bytes (or about 17 gigabytes). Therefore, we cap this at 17
* gigabytes.
*/
public static final long MAXIMUM_PAGE_SIZE_BYTES = ((1L << 31) - 1) * 8L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1337,7 +1337,8 @@ public String toString() {
public boolean equals(Object other) {
if (other instanceof BeanWithEnum) {
BeanWithEnum beanWithEnum = (BeanWithEnum) other;
return beanWithEnum.regularField.equals(regularField) && beanWithEnum.enumField.equals(enumField);
return beanWithEnum.regularField.equals(regularField)
&& beanWithEnum.enumField.equals(enumField);
}
return false;
}
Expand Down

0 comments on commit 313c6ca

Please sign in to comment.