Merge pull request #828 from Youmoo/Youmoo-patch-1

* Youmoo-Youmoo-patch-1:
  Fix BeanWrapperImpl example code in ref. manual
This commit is contained in:
Sam Brannen
2015-06-26 15:52:31 +02:00

View File

@@ -325,7 +325,7 @@ the properties of instantiated `Companies` and `Employees`:
[source,java,indent=0]
[subs="verbatim,quotes"]
----
BeanWrapper company = BeanWrapperImpl(new Company());
BeanWrapper company = new BeanWrapperImpl(new Company());
// setting the company name..
company.setPropertyValue("name", "Some Company Inc.");
// ... can also be done like this:
@@ -333,7 +333,7 @@ the properties of instantiated `Companies` and `Employees`:
company.setPropertyValue(value);
// ok, let's create the director and tie it to the company:
BeanWrapper jim = BeanWrapperImpl(new Employee());
BeanWrapper jim = new BeanWrapperImpl(new Employee());
jim.setPropertyValue("name", "Jim Stravinsky");
company.setPropertyValue("managingDirector", jim.getWrappedInstance());