Remove unnecessary invocation toString() method
Change-Id: Ibbf86c9b5a31e65d0f46b869976687727e925624
This commit is contained in:
@@ -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();
|
||||
}
|
||||
|
@@ -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);
|
||||
|
||||
|
@@ -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());
|
||||
}
|
||||
}
|
||||
}
|
||||
|
@@ -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();
|
||||
|
Reference in New Issue
Block a user