mirror of
https://github.com/Z3Prover/z3
synced 2025-07-19 10:52:02 +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
|
@ -72,11 +72,10 @@ public class Symbol extends Z3Object
|
|||
else if (isStringSymbol())
|
||||
return ((StringSymbol) this).getString();
|
||||
else
|
||||
return new String(
|
||||
"Z3Exception: Unknown symbol kind encountered.");
|
||||
return "Z3Exception: Unknown symbol kind encountered.";
|
||||
} catch (Z3Exception ex)
|
||||
{
|
||||
return new String("Z3Exception: " + ex.getMessage());
|
||||
return "Z3Exception: " + ex.getMessage();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue