mirror of
https://github.com/Z3Prover/z3
synced 2025-06-06 06:03:23 +00:00
No need to call "new String()"
This commit is contained in:
parent
27c684f743
commit
ccd88a63a5
3 changed files with 6 additions and 7 deletions
|
@ -83,7 +83,7 @@ public class FuncInterp extends Z3Object
|
||||||
return res + getValue() + "]";
|
return res + getValue() + "]";
|
||||||
} catch (Z3Exception e)
|
} catch (Z3Exception e)
|
||||||
{
|
{
|
||||||
return new String("Z3Exception: " + e.getMessage());
|
return "Z3Exception: " + e.getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -105,7 +105,7 @@ public class FuncInterp extends Z3Object
|
||||||
getContext().getFuncEntryDRQ().add(o);
|
getContext().getFuncEntryDRQ().add(o);
|
||||||
super.decRef(o);
|
super.decRef(o);
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* The number of entries in the function interpretation.
|
* The number of entries in the function interpretation.
|
||||||
|
@ -186,7 +186,7 @@ public class FuncInterp extends Z3Object
|
||||||
return res;
|
return res;
|
||||||
} catch (Z3Exception e)
|
} catch (Z3Exception e)
|
||||||
{
|
{
|
||||||
return new String("Z3Exception: " + e.getMessage());
|
return "Z3Exception: " + e.getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -90,7 +90,7 @@ public class Statistics extends Z3Object
|
||||||
return Key + ": " + getValueString();
|
return Key + ": " + getValueString();
|
||||||
} catch (Z3Exception e)
|
} catch (Z3Exception e)
|
||||||
{
|
{
|
||||||
return new String("Z3Exception: " + e.getMessage());
|
return "Z3Exception: " + e.getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -72,11 +72,10 @@ public class Symbol extends Z3Object
|
||||||
else if (isStringSymbol())
|
else if (isStringSymbol())
|
||||||
return ((StringSymbol) this).getString();
|
return ((StringSymbol) this).getString();
|
||||||
else
|
else
|
||||||
return new String(
|
return "Z3Exception: Unknown symbol kind encountered.";
|
||||||
"Z3Exception: Unknown symbol kind encountered.");
|
|
||||||
} catch (Z3Exception ex)
|
} catch (Z3Exception ex)
|
||||||
{
|
{
|
||||||
return new String("Z3Exception: " + ex.getMessage());
|
return "Z3Exception: " + ex.getMessage();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue