作者:江南白衣
之前用Groovy的嵌入式xml語(yǔ)法時(shí), 發(fā)現(xiàn)遍歷DOM只有children()函數(shù)而沒有parent(),就幫它修改了一下,連UnitTest一起提交到Groovy的JIRA上。
今天看到開發(fā)組接納了我的改動(dòng)。
> [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!
現(xiàn)在很多開源項(xiàng)目都有了Issue Tracker的渠道,方便大家參與測(cè)試和修改。
大家在消費(fèi)別人的開源努力時(shí),也應(yīng)該習(xí)慣把自己改過(guò)的東西提交回去。
之前用Groovy的嵌入式xml語(yǔ)法時(shí), 發(fā)現(xiàn)遍歷DOM只有children()函數(shù)而沒有parent(),就幫它修改了一下,連UnitTest一起提交到Groovy的JIRA上。
今天看到開發(fā)組接納了我的改動(dòng)。
> [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!
現(xiàn)在很多開源項(xiàng)目都有了Issue Tracker的渠道,方便大家參與測(cè)試和修改。
大家在消費(fèi)別人的開源努力時(shí),也應(yīng)該習(xí)慣把自己改過(guò)的東西提交回去。
否則下個(gè)版本自己還得改,多麻煩...
方便我們這些groovy愛好者
俺也是好怕以后每升一次版本要改一遍,所以堅(jiān)決提交.