SilverHoodCorp / gdata-java-client

Automatically exported from code.google.com/p/gdata-java-client
Apache License 2.0
0 stars 0 forks source link

misplaced getEtag method in BaseEntry #321

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
BaseEntry has the getEtag method, which returns the etag of the feed entry. 
However, not all feed entries have an etag and the method will then return 
null. That some API's lack an etag is a different story and a different issue 
(http://code.google.com/p/gdata-issues/issues/detail?id=2473).

I think the getEtag method is misplaced, because it does not have a meaning for 
all BaseEntry subclasses. The least that should be done, I think, is document 
its behaviour better by stating that it could return null.

Original issue reported on code.google.com by thomas.v...@gmail.com on 27 Jan 2011 at 10:13