mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-18 20:41:22 +07:00
support null in batch toString
GitOrigin-RevId: 7cac9db8e0a5db53c8ce0d9032578d7824b2e37d
This commit is contained in:
committed by
intellij-monorepo-bot
parent
00f6093164
commit
ece9437fd8
@@ -14,11 +14,14 @@ public class BatchEvaluatorServer {
|
||||
*/
|
||||
public static String evaluate(Object[] objects) throws IOException {
|
||||
ByteArrayOutputStream bas = new ByteArrayOutputStream();
|
||||
for (int idx = 0; idx < objects.length; idx++) {
|
||||
for (Object object : objects) {
|
||||
String res;
|
||||
int length;
|
||||
try {
|
||||
res = objects[idx].toString();
|
||||
res = object.toString();
|
||||
if (res == null) {
|
||||
res = "null";
|
||||
}
|
||||
length = res.length();
|
||||
}
|
||||
catch (Throwable e) {
|
||||
|
||||
Reference in New Issue
Block a user