Skip to content

Commit 102c935

Browse files
authored
alphabetize fields in Conversion.java to make it more readable (#87)
1 parent f0cc0a4 commit 102c935

File tree

1 file changed

+33
-33
lines changed
  • core-api/src/main/java/com/optimizely/ab/event/internal/payload

1 file changed

+33
-33
lines changed

core-api/src/main/java/com/optimizely/ab/event/internal/payload/Conversion.java

Lines changed: 33 additions & 33 deletions
Original file line numberDiff line numberDiff line change
@@ -20,20 +20,20 @@
2020

2121
public class Conversion extends Event {
2222

23-
private String visitorId;
24-
private long timestamp;
25-
private String projectId;
26-
private String accountId;
27-
private List<Feature> userFeatures;
28-
private List<LayerState> layerStates;
29-
private String eventEntityId;
30-
private String eventName;
31-
private List<EventMetric> eventMetrics;
32-
private List<Feature> eventFeatures;
33-
private boolean isGlobalHoldback;
34-
private boolean anonymizeIP;
35-
private String sessionId;
36-
private String revision;
23+
private String accountId;
24+
private boolean anonymizeIP;
25+
private String eventEntityId;
26+
private List<Feature> eventFeatures;
27+
private List<EventMetric> eventMetrics;
28+
private String eventName;
29+
private boolean isGlobalHoldback;
30+
private List<LayerState> layerStates;
31+
private String projectId;
32+
private String revision;
33+
private String sessionId;
34+
private long timestamp;
35+
private List<Feature> userFeatures;
36+
private String visitorId;
3737

3838
public Conversion() { }
3939

@@ -42,27 +42,27 @@ public Conversion(String visitorId, long timestamp, String projectId, String acc
4242
List<EventMetric> eventMetrics, List<Feature> eventFeatures, boolean isGlobalHoldback,
4343
String revision, boolean anonymizeIP) {
4444
this(visitorId, timestamp, projectId, accountId, userFeatures, layerStates, eventEntityId, eventName,
45-
eventMetrics, eventFeatures, isGlobalHoldback, anonymizeIP, revision, null);
45+
eventMetrics, eventFeatures, isGlobalHoldback, anonymizeIP, revision, null);
4646
}
4747

4848
public Conversion(String visitorId, long timestamp, String projectId, String accountId, List<Feature> userFeatures,
4949
List<LayerState> layerStates, String eventEntityId, String eventName,
5050
List<EventMetric> eventMetrics, List<Feature> eventFeatures, boolean isGlobalHoldback,
5151
boolean anonymizeIP, String revision, String sessionId) {
52-
this.visitorId = visitorId;
53-
this.timestamp = timestamp;
54-
this.projectId = projectId;
5552
this.accountId = accountId;
56-
this.userFeatures = userFeatures;
57-
this.layerStates = layerStates;
53+
this.anonymizeIP = anonymizeIP;
5854
this.eventEntityId = eventEntityId;
59-
this.eventName = eventName;
60-
this.eventMetrics = eventMetrics;
6155
this.eventFeatures = eventFeatures;
56+
this.eventMetrics = eventMetrics;
57+
this.eventName = eventName;
6258
this.isGlobalHoldback = isGlobalHoldback;
63-
this.anonymizeIP = anonymizeIP;
59+
this.layerStates = layerStates;
60+
this.projectId = projectId;
6461
this.revision = revision;
6562
this.sessionId = sessionId;
63+
this.timestamp = timestamp;
64+
this.userFeatures = userFeatures;
65+
this.visitorId = visitorId;
6666
}
6767

6868
public String getVisitorId() {
@@ -220,20 +220,20 @@ public int hashCode() {
220220
@Override
221221
public String toString() {
222222
return "Conversion{" +
223-
"visitorId='" + visitorId + '\'' +
224-
", timestamp=" + timestamp +
225-
", projectId='" + projectId + '\'' +
226-
", accountId='" + accountId + '\'' +
227-
", userFeatures=" + userFeatures +
228-
", layerStates=" + layerStates +
223+
"accountId='" + accountId + '\'' +
224+
", anonymizeIP=" + anonymizeIP +
229225
", eventEntityId='" + eventEntityId + '\'' +
230-
", eventName='" + eventName + '\'' +
231-
", eventMetrics=" + eventMetrics +
232226
", eventFeatures=" + eventFeatures +
227+
", eventMetrics=" + eventMetrics +
228+
", eventName='" + eventName + '\'' +
233229
", isGlobalHoldback=" + isGlobalHoldback +
234-
", anonymizeIP=" + anonymizeIP +
235-
", sessionId='" + sessionId + '\'' +
230+
", layerStates=" + layerStates +
231+
", projectId='" + projectId + '\'' +
236232
", revision='" + revision + '\'' +
233+
", sessionId='" + sessionId + '\'' +
234+
", timestamp=" + timestamp +
235+
", userFeatures=" + userFeatures +
236+
", visitorId='" + visitorId + '\'' +
237237
'}';
238238
}
239239
}

0 commit comments

Comments
 (0)