mirror of
https://github.com/danieldemus/openhab-core.git
synced 2025-01-11 05:41:52 +01:00
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:
parent
6966c2fc21
commit
d21d9b64e6
@ -46,7 +46,7 @@ public class CidrAddress {
|
||||
if (prefix == 0) {
|
||||
return address.getHostAddress();
|
||||
} else {
|
||||
return address.getHostAddress() + "/" + String.valueOf(prefix);
|
||||
return address.getHostAddress() + "/" + prefix;
|
||||
}
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user