Merge pull request #1301 from clebertsuconic/master-fix

just adding javadoc
loop
Test fix try