3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-24 01:25:31 +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

@ -83,7 +83,7 @@ public class FuncInterp extends Z3Object
return res + getValue() + "]";
} 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);
super.decRef(o);
}
};
}
/**
* The number of entries in the function interpretation.
@ -186,7 +186,7 @@ public class FuncInterp extends Z3Object
return res;
} catch (Z3Exception e)
{
return new String("Z3Exception: " + e.getMessage());
return "Z3Exception: " + e.getMessage();
}
}

View file

@ -90,7 +90,7 @@ public class Statistics extends Z3Object
return Key + ": " + getValueString();
} catch (Z3Exception e)
{
return new String("Z3Exception: " + e.getMessage());
return "Z3Exception: " + e.getMessage();
}
}

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