Remove unnecessary invocation toString() method

Change-Id: Ibbf86c9b5a31e65d0f46b869976687727e925624
This commit is contained in:
alex.ryazantsev
2013-11-14 02:56:47 +04:00
parent ec6fca88a5
commit 9d3492c0c8
4 changed files with 4 additions and 4 deletions

View File

@@ -51,7 +51,7 @@ public class ReviewerInfo implements Comparable<ReviewerInfo> {
if (accountInfo.getPreferredEmail() != null) {
return accountInfo.getPreferredEmail();
}
return accountInfo.getFullName().toString();
return accountInfo.getFullName();
}
return groupReference.getName();
}

View File

@@ -368,7 +368,7 @@ public class GerritDebugLauncher extends ServletContainerLauncher {
AbstractConnector connector = getConnector();
if (bindAddress != null) {
connector.setHost(bindAddress.toString());
connector.setHost(bindAddress);
}
connector.setPort(port);

View File

@@ -179,7 +179,7 @@ public abstract class ConsoleUI {
}
console.printf(" Supported options are:\n");
for (final String v : allowedValues) {
console.printf(" %s\n", v.toString().toLowerCase());
console.printf(" %s\n", v.toLowerCase());
}
}
}

View File

@@ -106,7 +106,7 @@ class NoShell implements Factory<Command> {
} finally {
sshScope.set(old);
}
err.write(Constants.encode(message.toString()));
err.write(Constants.encode(message));
err.flush();
in.close();