Join GitHub today
GitHub is home to over 40 million developers working together to host and review code, manage projects, and build software together.Sign up
HttpResponse.parseAs() accepts Void.class to ignore #110
From yan...@google.com on May 10, 2012 13:01:06
External references, such as a standards document, or specification? http://javadoc.google-http-java-client.googlecode.com/hg/1.8.3-beta/com/google/api/client/http/HttpParser.html#parse(com.google.api.client.http.HttpResponse , java.lang.Class) http://javadoc.google-http-java-client.googlecode.com/hg/1.8.3-beta/com/google/api/client/http/HttpResponse.html#ignore() Java environments (e.g. Java 6, Android 2.3, App Engine, or All)? All Please describe the feature requested. Void.class may be a convenient way to say that you want to ignore the result. It would behave equivalent to calling HttpResponse.ignore(). But the nice thing is that then you are always following the same code path.