xwiki/xwiki-commons — comment on commit 74ce5376bde9519e39c009ffa9e462a24ff22024
File: xwiki-commons-core/xwiki-commons-velocity/src/main/java/org/xwiki/velocity/tools/CollectionsTool.java line 111
By tmortagne:

Looks lie, according to the velocity user guide, that [] is officially a ArrayList but {} is just a Map so probably not.

But we should at least make clear in the java doc for all methods returning Map (same for list I guess) that if you don't care about ordered or not ordered map you should use {} (or [] for list).