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:
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() + "]";
|
||||
} 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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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();
|
||||
}
|
||||
}
|
||||
|
||||
|
|
|
@ -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