作者:
江南白衣 之前用Groovy的嵌入式xml語法時, 發現遍歷DOM只有children()函數而沒有parent(),就幫它修改了一下,連UnitTest一起提交到Groovy的JIRA上。
今天看到開發組接納了我的改動。
> [patch] add parent() implement to XmlSlurper
> Key: GROOVY-1010
> The XmlSlurper only have the children() method to explore DOM.
> But in our project, it's so offten to use parent().
> i had patch it with unit test .
John Wilson resolved GROOVY-1010:
------------------------------
---
Resolution: Fixed
Patch added - thanks Calvin!
現在很多開源項目都有了Issue Tracker的渠道,方便大家參與測試和修改。
大家在消費別人的開源努力時,也應該習慣把自己改過的東西提交回去。