Skip to content

Commit 5bc544c

Browse files
committed
Remove usage of procedure syntax
1 parent de6ac8f commit 5bc544c

File tree

9 files changed

+21
-21
lines changed

9 files changed

+21
-21
lines changed

src/main/scala/z3/scala/Z3ASTVector.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,19 @@ import com.microsoft.z3.Native
44

55
final class Z3ASTVector private[z3](val ptr: Long, val context: Z3Context) extends Z3Object {
66

7-
def incRef() {
7+
def incRef(): Unit = {
88
Native.astVectorIncRef(context.ptr, this.ptr)
99
}
1010

11-
def decRef() {
11+
def decRef(): Unit = {
1212
Native.astVectorDecRef(context.ptr, this.ptr)
1313
}
1414

1515
def get(i: Int): Z3AST = {
1616
new Z3AST(Native.astVectorGet(context.ptr, this.ptr, i), context)
1717
}
1818

19-
def set(i: Int, v: Z3AST) {
19+
def set(i: Int, v: Z3AST): Unit = {
2020
Native.astVectorSet(context.ptr, this.ptr, i, v.ptr)
2121
}
2222

src/main/scala/z3/scala/Z3FuncInterp.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,11 +18,11 @@ private[scala] class Z3FuncInterp (val ptr: Long, val context: Z3Context) extend
1818
args.mkString("(", ", ", ")") + " -> " + value
1919
}.mkString(", ") + ", else -> " + default + "]"
2020

21-
final protected[z3] def incRef() {
21+
final protected[z3] def incRef(): Unit = {
2222
Native.funcInterpIncRef(context.ptr, ptr)
2323
}
2424

25-
final protected[z3] def decRef() {
25+
final protected[z3] def decRef(): Unit = {
2626
Native.funcInterpDecRef(context.ptr, ptr)
2727
}
2828

src/main/scala/z3/scala/Z3FuncInterpEntry.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@ private[scala] class Z3FuncInterpEntry(val ptr: Long, val context: Z3Context) ex
1313
}
1414
}
1515

16-
final protected[z3] def incRef() {
16+
final protected[z3] def incRef(): Unit = {
1717
Native.funcEntryIncRef(context.ptr, ptr)
1818
}
1919

20-
final protected[z3] def decRef() {
20+
final protected[z3] def decRef(): Unit = {
2121
Native.funcEntryDecRef(context.ptr, ptr)
2222
}
2323

src/main/scala/z3/scala/Z3Model.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,11 @@ object Z3Model {
3131
sealed class Z3Model private[z3](val ptr: Long, val context: Z3Context) extends Z3Object {
3232
override def toString : String = context.modelToString(this)
3333

34-
def incRef() {
34+
def incRef(): Unit = {
3535
Native.modelIncRef(context.ptr, this.ptr)
3636
}
3737

38-
def decRef() {
38+
def decRef(): Unit = {
3939
Native.modelDecRef(context.ptr, this.ptr)
4040
}
4141

src/main/scala/z3/scala/Z3Object.scala

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -6,16 +6,16 @@ trait Z3Object extends Z3Pointer {
66
val ptr: Long
77
val context: Z3Context
88

9-
protected[z3] def incRef()
10-
protected[z3] def decRef()
9+
protected[z3] def incRef(): Unit
10+
protected[z3] def decRef(): Unit
1111
}
1212

1313
trait Z3ASTLike extends Z3Object {
14-
final protected[z3] def incRef() {
14+
final protected[z3] def incRef(): Unit = {
1515
Native.incRef(context.ptr, ptr)
1616
}
1717

18-
final protected[z3] def decRef() {
18+
final protected[z3] def decRef(): Unit = {
1919
Native.decRef(context.ptr, ptr)
2020
}
2121
}

src/main/scala/z3/scala/Z3Params.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@ private[scala] class Z3Params(val ptr: Long, val context: Z3Context) extends Z3O
1212
case _ => throw new Z3Exception("Can't set value " + value + " of type " + value.getClass)
1313
}
1414

15-
final protected[z3] def incRef() {
15+
final protected[z3] def incRef(): Unit = {
1616
Native.paramsIncRef(context.ptr, ptr)
1717
}
1818

19-
final protected[z3] def decRef() {
19+
final protected[z3] def decRef(): Unit = {
2020
Native.paramsDecRef(context.ptr, ptr)
2121
}
2222

src/main/scala/z3/scala/Z3RefCountQueue.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,14 @@ package z3.scala
33
class Z3RefCountQueue[T <: Z3Object] {
44
private val drQueue = collection.mutable.Queue[T]()
55

6-
protected[z3] def track(t: T) {
6+
protected[z3] def track(t: T): Unit = {
77
t.incRef()
88
synchronized {
99
drQueue += t
1010
}
1111
}
1212

13-
protected[z3] def clearQueue() {
13+
protected[z3] def clearQueue(): Unit = {
1414
synchronized {
1515
for (t <- drQueue) {
1616
t.decRef()

src/main/scala/z3/scala/Z3Solver.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -69,11 +69,11 @@ class Z3Solver private[z3](val ptr: Long, val context: Z3Context) extends Z3Obje
6969
Native.solverGetNumScopes(context.ptr, this.ptr)
7070
}
7171

72-
def incRef() {
72+
def incRef(): Unit = {
7373
Native.solverIncRef(context.ptr, this.ptr)
7474
}
7575

76-
def decRef() {
76+
def decRef(): Unit = {
7777
Native.solverDecRef(context.ptr, this.ptr)
7878
}
7979

src/main/scala/z3/scala/Z3Tactic.scala

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,11 +11,11 @@ class Z3Tactic private[z3](val ptr : Long, val context : Z3Context) extends Z3Ob
1111
}
1212
}
1313

14-
def incRef() {
14+
def incRef(): Unit = {
1515
Native.tacticIncRef(context.ptr, this.ptr)
1616
}
1717

18-
def decRef() {
18+
def decRef(): Unit = {
1919
Native.tacticDecRef(context.ptr, this.ptr)
2020
}
2121

0 commit comments

Comments
 (0)