mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 03:15:50 +00:00
Java API: split incRef into incRef and addToReferenceQueue
One method should do one thing only, it's easy to mix things up otherwise.
This commit is contained in:
parent
2a347f04bf
commit
22ffd65d1e
20 changed files with 150 additions and 87 deletions
|
@ -21,8 +21,7 @@ package com.microsoft.z3;
|
|||
/**
|
||||
* A ParameterSet represents a configuration in the form of Symbol/value pairs.
|
||||
**/
|
||||
public class Params extends Z3Object
|
||||
{
|
||||
public class Params extends Z3Object {
|
||||
/**
|
||||
* Adds a parameter setting.
|
||||
**/
|
||||
|
@ -123,9 +122,14 @@ public class Params extends Z3Object
|
|||
super(ctx, Native.mkParams(ctx.nCtx()));
|
||||
}
|
||||
|
||||
|
||||
@Override
|
||||
void incRef(long o) {
|
||||
Native.paramsIncRef(getContext().nCtx(), o);
|
||||
void incRef() {
|
||||
Native.paramsIncRef(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
||||
@Override
|
||||
void addToReferenceQueue() {
|
||||
getContext().getParamsDRQ().storeReference(getContext(), this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue