3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-06-28 00:48:45 +00:00

Adding @Override declarations

They are important, as they prevent miss-spelling the parent method  and
/or arguments name.
This commit is contained in:
George Karpenkov 2016-01-06 11:07:48 +01:00
parent a3a8ba40e7
commit 1dcaddbec7
36 changed files with 85 additions and 4 deletions

View file

@ -112,8 +112,9 @@ public class Optimize extends Z3Object
/**
* Print a string representation of the handle.
**/
public String toString()
**/
@Override
public String toString()
{
return getValue().toString();
}
@ -237,7 +238,8 @@ public class Optimize extends Z3Object
/**
* Print the context to a String (SMT-LIB parseable benchmark).
**/
**/
@Override
public String toString()
{
return Native.optimizeToString(getContext().nCtx(), getNativeObject());
@ -262,13 +264,14 @@ public class Optimize extends Z3Object
super(ctx, Native.mkOptimize(ctx.nCtx()));
}
@Override
void incRef(long o)
{
getContext().getOptimizeDRQ().incAndClear(getContext(), o);
super.incRef(o);
}
@Override
void decRef(long o)
{
getContext().getOptimizeDRQ().add(o);