作者:江南白衣
之前用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的渠道,方便大家參與測試和修改。
大家在消費別人的開源努力時,也應該習慣把自己改過的東西提交回去。
之前用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的渠道,方便大家參與測試和修改。
大家在消費別人的開源努力時,也應該習慣把自己改過的東西提交回去。
否則下個版本自己還得改,多麻煩...
方便我們這些groovy愛好者
俺也是好怕以后每升一次版本要改一遍,所以堅決提交.