Closed GoogleCodeExporter closed 9 years ago
We intentionally designed it that way because we want users to use the builder
pattern, e.g.:
XmlHttpParser.builder(namespaceDictionary).setContent(contentType).build()
If that is a burden, you can always wrap it in a utility method, or extend it
as you've done.
The builder pattern seems less necessary in this case, but we want the library
to have a consistent design of using the builder pattern for classes that are
thread safe.
Original comment by yan...@google.com
on 2 Sep 2011 at 1:50
Yes, that makes sense. I was mostly concerned that because this is a protected
constructor, that it might someday be deprecated. Thanks!
Original comment by tra...@circutus.com
on 2 Sep 2011 at 4:48
No problem, and thanks for the feedback. By the way, we treat protected the
same as public in terms of level of support. In other words, it is considered
part of the official surface of the library and we don't intend to deprecate it
(though we reserve the right to do so while we're still in Beta). Our policy
is documented here:
http://code.google.com/p/google-api-java-client/wiki/Support#Beta
Original comment by yan...@google.com
on 2 Sep 2011 at 5:20
Original issue reported on code.google.com by
tra...@circutus.com
on 31 Aug 2011 at 4:25