Skip to content

Commit 451f28b

Browse files
author
Petko Nikolov
committed
fixed style mistakes
1 parent 5beba18 commit 451f28b

File tree

1 file changed

+5
-6
lines changed
  • core/src/main/scala/org/apache/spark/util/collection

1 file changed

+5
-6
lines changed

core/src/main/scala/org/apache/spark/util/collection/BitSet.scala

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -88,7 +88,6 @@ class BitSet(numBits: Int) extends Serializable {
8888
newBS
8989
}
9090

91-
9291
/**
9392
* Compute the symmetric difference by performing bit-wise XOR of the two sets returning the
9493
* result.
@@ -97,14 +96,14 @@ class BitSet(numBits: Int) extends Serializable {
9796
val newBS = new BitSet(math.max(capacity, other.capacity))
9897
val smaller = math.min(numWords, other.numWords)
9998
var ind = 0
100-
while ( ind < smaller ) {
99+
while (ind < smaller) {
101100
newBS.words(ind) = words(ind) ^ other.words(ind)
102101
ind += 1
103102
}
104-
if ( ind < numWords ) {
103+
if (ind < numWords) {
105104
Array.copy( words, ind, newBS.words, ind, numWords - ind )
106105
}
107-
if ( ind < other.numWords ) {
106+
if (ind < other.numWords) {
108107
Array.copy( other.words, ind, newBS.words, ind, other.numWords - ind )
109108
}
110109
newBS
@@ -118,11 +117,11 @@ class BitSet(numBits: Int) extends Serializable {
118117
val newBS = new BitSet(capacity)
119118
val smaller = math.min(numWords, other.numWords)
120119
var ind = 0
121-
while ( ind < smaller ) {
120+
while (ind < smaller) {
122121
newBS.words(ind) = words(ind) & ~other.words(ind)
123122
ind += 1
124123
}
125-
if ( ind < numWords ) {
124+
if (ind < numWords) {
126125
Array.copy( words, ind, newBS.words, ind, numWords - ind )
127126
}
128127
newBS

0 commit comments

Comments
 (0)