mirror of
https://github.com/honeymoose/OpenSearch.git
synced 2025-02-24 05:44:59 +00:00
Fix strange compilation failure under jdk7...
This commit is contained in:
parent
b275e6f798
commit
f2c085a9f9
@ -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();
|
||||
|
Loading…
x
Reference in New Issue
Block a user