3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-11-25 23:19:32 +00:00

Turned Z3Exception into a RuntimeException such that throws declarations are not needed anymore. Thanks to codeplex user steimann for this suggestion.

This commit is contained in:
Christoph M. Wintersteiger 2015-04-08 13:16:32 +01:00
parent 2f4c923216
commit b7bb53406f
62 changed files with 834 additions and 834 deletions

View file

@ -70,7 +70,7 @@ public class Statistics extends Z3Object
*
* @throws Z3Exception
**/
public String getValueString() throws Z3Exception
public String getValueString()
{
if (isUInt())
return Integer.toString(m_int);
@ -131,7 +131,7 @@ public class Statistics extends Z3Object
/**
* The number of statistical data.
**/
public int size() throws Z3Exception
public int size()
{
return Native.statsSize(getContext().nCtx(), getNativeObject());
}
@ -141,7 +141,7 @@ public class Statistics extends Z3Object
*
* @throws Z3Exception
**/
public Entry[] getEntries() throws Z3Exception
public Entry[] getEntries()
{
int n = size();
@ -166,7 +166,7 @@ public class Statistics extends Z3Object
/**
* The statistical counters.
**/
public String[] getKeys() throws Z3Exception
public String[] getKeys()
{
int n = size();
String[] res = new String[n];
@ -182,7 +182,7 @@ public class Statistics extends Z3Object
*
* @throws Z3Exception
**/
public Entry get(String key) throws Z3Exception
public Entry get(String key)
{
int n = size();
Entry[] es = getEntries();
@ -192,18 +192,18 @@ public class Statistics extends Z3Object
return null;
}
Statistics(Context ctx, long obj) throws Z3Exception
Statistics(Context ctx, long obj)
{
super(ctx, obj);
}
void incRef(long o) throws Z3Exception
void incRef(long o)
{
getContext().getStatisticsDRQ().incAndClear(getContext(), o);
super.incRef(o);
}
void decRef(long o) throws Z3Exception
void decRef(long o)
{
getContext().getStatisticsDRQ().add(o);
super.decRef(o);