Commit 9b1f5f1
committed
minor #5043 Switched the first example to a static constructor method (kix)
This PR was submitted for the 2.6 branch but it was merged into the 2.3 branch instead (closes #5043).
Discussion
----------
Switched the first example to a static constructor method
I believe having a non-static method for class instantiation is not something the documentation should encourage. It's much better to use a named constructor here (also note that `TestObject` class code isn't supplied).
Commits
-------
118513b Switched the first example to a static constructor method1 file changed
+1
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
55 | 55 | | |
56 | 56 | | |
57 | 57 | | |
58 | | - | |
59 | | - | |
| 58 | + | |
60 | 59 | | |
61 | 60 | | |
62 | 61 | | |
| |||
0 commit comments