Remove unnecessary conversion to string (#1557)

We can remove the explicit conversion to the string, as this is done implicitly.

Signed-off-by: Paul Vogel <pavog@users.noreply.github.com>
This commit is contained in:
Paul Vogel 2020-07-20 18:29:27 +02:00 committed by GitHub
parent 6966c2fc21
commit d21d9b64e6
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -46,7 +46,7 @@ public class CidrAddress {
if (prefix == 0) {
return address.getHostAddress();
} else {
return address.getHostAddress() + "/" + String.valueOf(prefix);
return address.getHostAddress() + "/" + prefix;
}
}