mirror of
https://github.com/Z3Prover/z3
synced 2025-05-12 02:04:43 +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;
|
|||
* ApplyResult objects represent the result of an application of a tactic to a
|
||||
* goal. It contains the subgoals that were produced.
|
||||
**/
|
||||
public class ApplyResult extends Z3Object
|
||||
{
|
||||
public class ApplyResult extends Z3Object {
|
||||
/**
|
||||
* The number of Subgoals.
|
||||
**/
|
||||
|
@ -74,8 +73,12 @@ public class ApplyResult extends Z3Object
|
|||
}
|
||||
|
||||
@Override
|
||||
void incRef(long o) {
|
||||
Native.applyResultIncRef(getContext().nCtx(), o);
|
||||
void incRef() {
|
||||
Native.applyResultIncRef(getContext().nCtx(), getNativeObject());
|
||||
}
|
||||
|
||||
@Override
|
||||
void addToReferenceQueue() {
|
||||
getContext().getApplyResultDRQ().storeReference(getContext(), this);
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue