3
0
Fork 0
mirror of https://github.com/Z3Prover/z3 synced 2025-04-27 02:45:51 +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();
}
}