Default the properties in the constructor Fixes #20135

Comment From: pivotal-issuemaster

@ddebree Please sign the Contributor License Agreement!

Click here to manually synchronize the status of this Pull Request.

See the FAQ for frequently asked questions.

Comment From: pivotal-issuemaster

@ddebree Thank you for signing the Contributor License Agreement!

Comment From: wilkinsona

Thanks for the pull request, but I think this will create a potential ordering problem where a change to a value may not be noticed if it's made after they've been captured. I've pushed a different approach and amended the faulty test in https://github.com/spring-projects/spring-boot/commit/c8907d46b40348f47a60055ca4016a6cba95d90c. Thanks for bringing the problem to our attention.

Comment From: ddebree

No worries. Figured there was more to this issue than just what I proposed. Thanks for the fix.