Skip to content

Commit

Permalink
MINOR: Removed dead fields from Event
Browse files Browse the repository at this point in the history
  • Loading branch information
original-brownbear committed May 17, 2017
1 parent 7e9529f commit 4863621
Showing 1 changed file with 3 additions and 7 deletions.
10 changes: 3 additions & 7 deletions logstash-core/src/main/java/org/logstash/Event.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,5 @@
package org.logstash;

import com.fasterxml.jackson.databind.ObjectMapper;
import org.logstash.bivalues.NullBiValue;
import org.logstash.bivalues.StringBiValue;
import org.logstash.bivalues.TimeBiValue;
Expand Down Expand Up @@ -43,16 +42,13 @@ public class Event implements Cloneable, Serializable, Queueable {
public static final String VERSION_ONE = "1";
private static final String DATA_MAP_KEY = "DATA";
private static final String META_MAP_KEY = "META";
private static final String SEQNUM_MAP_KEY = "SEQUENCE_NUMBER";


private static final Logger logger = LogManager.getLogger(Event.class);
private static final ObjectMapper mapper = new ObjectMapper();

public Event()
{
this.metadata = new HashMap<String, Object>();
this.data = new HashMap<String, Object>();
this.metadata = new HashMap<>();
this.data = new HashMap<>();
this.data.put(VERSION, VERSION_ONE);
this.cancelled = false;
this.timestamp = new Timestamp();
Expand All @@ -72,7 +68,7 @@ public Event(Map data)
if (this.data.containsKey(METADATA)) {
this.metadata = (Map<String, Object>) this.data.remove(METADATA);
} else {
this.metadata = new HashMap<String, Object>();
this.metadata = new HashMap<>();
}
this.metadata_accessors = new Accessors(this.metadata);

Expand Down

0 comments on commit 4863621

Please sign in to comment.