Skip to content

Commit

Permalink
Remove semicolons at end of the line (#684)
Browse files Browse the repository at this point in the history
  • Loading branch information
zaneli authored and densh committed Apr 29, 2017
1 parent 1cbceb3 commit caa7adf
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions javalib/src/main/scala/java/io/File.scala
Original file line number Diff line number Diff line change
Expand Up @@ -335,7 +335,7 @@ object File {
else 1 // Possible UNC path name

var foundSlash = false
val newPath = path.toCharArray();
val newPath = path.toCharArray()
var i = 0
while (i < length) {
val currentChar = newPath(i)
Expand Down Expand Up @@ -504,8 +504,8 @@ object File {
val pathSeparator: String = pathSeparatorChar.toString
val separatorChar: Char = if (Platform.isWindows) '\\' else '/'
val separator: String = separatorChar.toString
private var counter: Int = 0;
private var counterBase: Int = 0;
private var counter: Int = 0
private var counterBase: Int = 0
private val caseSensitive: Boolean = !Platform.isWindows

def listRoots(): Array[File] =
Expand Down
2 changes: 1 addition & 1 deletion javalib/src/main/scala/java/math/Division.scala
Original file line number Diff line number Diff line change
Expand Up @@ -443,7 +443,7 @@ private[math] object Division {
do {
Elementary.inplaceSubtract(op2, op1)
BitLevel.inplaceShiftRight(op2, op2.getLowestSetBit)
} while (op2.compareTo(op1) >= BigInteger.EQUALS);
} while (op2.compareTo(op1) >= BigInteger.EQUALS)
}
// now op1 >= op2
val swap: BigInteger = op2
Expand Down
2 changes: 1 addition & 1 deletion javalib/src/main/scala/java/util/Random.scala
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ class Random(seed_in: Long) extends AnyRef with java.io.Serializable {

def nextInt(n: Int): Int = {
if (n <= 0)
throw new IllegalArgumentException("n must be positive");
throw new IllegalArgumentException("n must be positive")

if ((n & -n) == n) // i.e., n is a power of 2
((n * next(31).toLong) >> 31).toInt
Expand Down

0 comments on commit caa7adf

Please sign in to comment.