mirror of
https://github.com/Z3Prover/z3
synced 2025-04-28 11:25:51 +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
|
@ -85,9 +85,12 @@ public class Constructor extends Z3Object {
|
|||
}
|
||||
|
||||
@Override
|
||||
void incRef(long o) {
|
||||
|
||||
void incRef() {
|
||||
// Datatype constructors are not reference counted.
|
||||
}
|
||||
|
||||
@Override
|
||||
void addToReferenceQueue() {
|
||||
getContext().getConstructorDRQ().storeReference(getContext(), this);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue