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 12b9850a85
commit 48e49babe3

View File

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