[SPARK-21875][BUILD] Fix Java style bugs

## 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 <andrew@andrewash.com>

Closes #19088 from ash211/spark-21875-lint-java.
This commit is contained in:
Andrew Ash 2017-08-31 09:26:11 +09:00 committed by hyukjinkwon
parent d8f4540863
commit 313c6ca435
2 changed files with 4 additions and 2 deletions

View file

@ -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;

View file

@ -1337,7 +1337,8 @@ public class JavaDatasetSuite implements Serializable {
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;
}