DATACMNS-1672 - Fix code sample in documentation.

Add required parentheses to method call.

Original pull request: #335.
This commit is contained in:
Zed Spencer-Milnes
2019-01-24 12:33:22 +00:00
committed by Mark Paluch
parent 1107351b6e
commit 092ab6df53

View File

@@ -144,7 +144,7 @@ interface NamesOnly {
String getLastname();
default String getFullName() {
return getFirstname.concat(" ").concat(getLastname());
return getFirstname().concat(" ").concat(getLastname());
}
}
----