compile-static Questions

1

Solved

Is there any practical difference between the following two approaches to casting: result.count = (int) response['hits']['total'] vs result.count = response['hits']['total'] as int I'm using @C...
Bolanos asked 16/4, 2017 at 23:45

2

Solved

I've read through the "What's new in Groovy 2.0" and I'm a bit confused about when to use @CompileStatic. The article mentions that the @CompileStatic annotation was added for developers who weren'...
Bracci asked 7/2, 2013 at 22:17

1

I'm novice groovy programmer, and I faced weird behaviour of switch-case-break statement with static compilation (@CompileStaticannotation). It seems that breaks are ignored. Is it a bug or I've mi...
Impermissible asked 8/2, 2013 at 14:27
1

© 2022 - 2024 — McMap. All rights reserved.