Fix strange compilation failure under jdk7...

This commit is contained in:
kimchy 2011-07-11 03:59:15 +03:00
parent b275e6f798
commit f2c085a9f9

View File

@ -437,9 +437,11 @@ public class TwitterRiver extends AbstractRiverComponent implements River {
}
if (status.getAnnotations() != null) {
builder.startObject("annotation");
for (Annotation ann : status.getAnnotations().getAnnotations()) {
List<Annotation> annotations = status.getAnnotations().getAnnotations();
for (Annotation ann : annotations) {
builder.startObject(ann.getType());
for (Map.Entry<String, String> entry : ann.getAttributes().entrySet()) {
Map<String, String> attributes = ann.getAttributes();
for (Map.Entry<String, String> entry : attributes.entrySet()) {
builder.field(entry.getKey(), entry.getValue());
}
builder.endObject();