jasona7 / google-checkout-java-sample-code

Automatically exported from code.google.com/p/google-checkout-java-sample-code
0 stars 0 forks source link

Utils methods do not need document as first parameter #7

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
In many cases, the Utils class passes the Document explicitly:

findElementElseCreateAndSet(Document document, Element parent, String
child, String value);

You can use this idiom instead:

Document document = parent.getOwnerDocument();

Original issue reported on code.google.com by will.sar...@gmail.com on 30 Apr 2007 at 8:31