Those Brackets Really Matter in a Groovy Switch!

I’ve been working on a data detector plugin for Grails as a side project, and thought it important to mention the importance of including brackets {} for logic statements in groovy switches. Below I have a simple detector for a simple DataType enum that has STRING and DECIMAL (which in my real code is BigDecimal) […]