Skip to content

Commit 8a7acba

Browse files
committed
Fix Java style bugs
Filed upstream at https://issues.apache.org/jira/browse/SPARK-21875
1 parent 90b58ac commit 8a7acba

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

core/src/main/java/org/apache/spark/memory/TaskMemoryManager.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,8 @@ public class TaskMemoryManager {
7474
* Maximum supported data page size (in bytes). In principle, the maximum addressable page size is
7575
* (1L << OFFSET_BITS) bytes, which is 2+ petabytes. However, the on-heap allocator's
7676
* maximum page size is limited by the maximum amount of data that can be stored in a long[]
77-
* array, which is (2^31 - 1) * 8 bytes (or about 17 gigabytes). Therefore, we cap this at 17 gigabytes.
77+
* array, which is (2^31 - 1) * 8 bytes (or about 17 gigabytes). Therefore, we cap this at 17
78+
* gigabytes.
7879
*/
7980
public static final long MAXIMUM_PAGE_SIZE_BYTES = ((1L << 31) - 1) * 8L;
8081

sql/core/src/test/java/test/org/apache/spark/sql/JavaDatasetSuite.java

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1337,7 +1337,8 @@ public String toString() {
13371337
public boolean equals(Object other) {
13381338
if (other instanceof BeanWithEnum) {
13391339
BeanWithEnum beanWithEnum = (BeanWithEnum) other;
1340-
return beanWithEnum.regularField.equals(regularField) && beanWithEnum.enumField.equals(enumField);
1340+
return beanWithEnum.regularField.equals(regularField)
1341+
&& beanWithEnum.enumField.equals(enumField);
13411342
}
13421343
return false;
13431344
}

0 commit comments

Comments
 (0)