3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2026-01-14 06:36:14 +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

@ -26,7 +26,7 @@ public class Z3Object extends IDisposable
/**
* Finalizer.
**/
protected void finalize() throws Z3Exception
protected void finalize()
{
dispose();
}
@ -34,7 +34,7 @@ public class Z3Object extends IDisposable
/**
* Disposes of the underlying native Z3 object.
**/
public void dispose() throws Z3Exception
public void dispose()
{
if (m_n_obj != 0)
{
@ -58,7 +58,7 @@ public class Z3Object extends IDisposable
m_ctx = ctx;
}
Z3Object(Context ctx, long obj) throws Z3Exception
Z3Object(Context ctx, long obj)
{
ctx.m_refCount++;
m_ctx = ctx;
@ -66,15 +66,15 @@ public class Z3Object extends IDisposable
m_n_obj = obj;
}
void incRef(long o) throws Z3Exception
void incRef(long o)
{
}
void decRef(long o) throws Z3Exception
void decRef(long o)
{
}
void checkNativeObject(long obj) throws Z3Exception
void checkNativeObject(long obj)
{
}
@ -83,7 +83,7 @@ public class Z3Object extends IDisposable
return m_n_obj;
}
void setNativeObject(long value) throws Z3Exception
void setNativeObject(long value)
{
if (value != 0)
{