3
0
Fork 0
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:
George Karpenkov 2016-01-06 11:12:33 +01:00
parent 27c684f743
commit ccd88a63a5
3 changed files with 6 additions and 7 deletions

View file

@ -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();
}
}