Skip to content

Commit e90a9c3

Browse files
committed
These are obsolete classes no longer in use
1 parent f43faac commit e90a9c3

File tree

8 files changed

+37
-36
lines changed

8 files changed

+37
-36
lines changed

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/Application.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
import com.microsoft.applicationinsights.telemetry.Duration;
3333
import com.microsoft.applicationinsights.telemetry.JsonTelemetryDataSerializer;
3434
import com.google.common.base.Preconditions;
35+
import org.apache.http.annotation.Obsolete;
3536

3637
/**
3738
* Data contract class Application.
3839
*/
40+
@Obsolete
3941
public class Application
4042
implements JsonSerializable
4143
{

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/Cloud.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
import com.microsoft.applicationinsights.telemetry.Duration;
3333
import com.microsoft.applicationinsights.telemetry.JsonTelemetryDataSerializer;
3434
import com.google.common.base.Preconditions;
35+
import org.apache.http.annotation.Obsolete;
3536

3637
/**
3738
* Data contract class Cloud.
3839
*/
40+
@Obsolete
3941
public class Cloud
4042
implements JsonSerializable
4143
{

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/Device.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
import com.microsoft.applicationinsights.telemetry.Duration;
3333
import com.microsoft.applicationinsights.telemetry.JsonTelemetryDataSerializer;
3434
import com.google.common.base.Preconditions;
35+
import org.apache.http.annotation.Obsolete;
3536

3637
/**
3738
* Data contract class Device.
3839
*/
40+
@Obsolete
3941
public class Device
4042
implements JsonSerializable
4143
{

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/Internal.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@
3232
import com.microsoft.applicationinsights.telemetry.Duration;
3333
import com.microsoft.applicationinsights.telemetry.JsonTelemetryDataSerializer;
3434
import com.google.common.base.Preconditions;
35+
import org.apache.http.annotation.Obsolete;
3536

3637
/**
3738
* Data contract class Internal.
39+
* This class is now obsolete and will be removed in coming versions. Please
40+
* avoid taking any dependencies on this class.
3841
*/
42+
@Obsolete
3943
public class Internal
4044
implements JsonSerializable
4145
{

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/Location.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,12 @@
3232
import com.microsoft.applicationinsights.telemetry.Duration;
3333
import com.microsoft.applicationinsights.telemetry.JsonTelemetryDataSerializer;
3434
import com.google.common.base.Preconditions;
35+
import org.apache.http.annotation.Obsolete;
3536

3637
/**
3738
* Data contract class Location.
3839
*/
40+
@Obsolete
3941
public class Location
4042
implements JsonSerializable
4143
{

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/Operation.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@
3232
import com.microsoft.applicationinsights.telemetry.Duration;
3333
import com.microsoft.applicationinsights.telemetry.JsonTelemetryDataSerializer;
3434
import com.google.common.base.Preconditions;
35+
import org.apache.http.annotation.Obsolete;
3536

3637
/**
3738
* Data contract class Operation.
39+
* This class is now obsolete and will be removed in coming versions. Please
40+
* avoid taking any dependencies on this class.
3841
*/
42+
@Obsolete
3943
public class Operation
4044
implements JsonSerializable
4145
{

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/Session.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,10 +32,14 @@
3232
import com.microsoft.applicationinsights.telemetry.Duration;
3333
import com.microsoft.applicationinsights.telemetry.JsonTelemetryDataSerializer;
3434
import com.google.common.base.Preconditions;
35+
import org.apache.http.annotation.Obsolete;
3536

3637
/**
3738
* Data contract class Session.
39+
* This class is now obsolete and will be removed in coming versions. Please
40+
* avoid taking any dependencies on this class.
3841
*/
42+
@Obsolete
3943
public class Session
4044
implements JsonSerializable
4145
{

core/src/main/java/com/microsoft/applicationinsights/internal/schemav2/User.java

Lines changed: 17 additions & 36 deletions
Original file line numberDiff line numberDiff line change
@@ -32,97 +32,82 @@
3232
import com.microsoft.applicationinsights.telemetry.Duration;
3333
import com.microsoft.applicationinsights.telemetry.JsonTelemetryDataSerializer;
3434
import com.google.common.base.Preconditions;
35+
import org.apache.http.annotation.Obsolete;
3536

3637
/**
3738
* Data contract class User.
39+
* This class is now obsolete and will be removed in coming versions. Please
40+
* avoid taking any dependencies on this class.
3841
*/
42+
@Obsolete
3943
public class User
4044
implements JsonSerializable
4145
{
4246
/**
4347
* Backing field for property AccountId.
4448
*/
4549
private String accountId;
46-
47-
/**
48-
* Backing field for property UserAgent.
49-
*/
50-
private String userAgent;
51-
50+
5251
/**
5352
* Backing field for property Id.
5453
*/
5554
private String id;
56-
55+
5756
/**
5857
* Backing field for property AuthUserId.
5958
*/
6059
private String authUserId;
61-
60+
6261
/**
6362
* Initializes a new instance of the User class.
6463
*/
6564
public User()
6665
{
6766
this.InitializeFields();
6867
}
69-
68+
7069
/**
7170
* Gets the AccountId property.
7271
*/
7372
public String getAccountId() {
7473
return this.accountId;
7574
}
76-
75+
7776
/**
7877
* Sets the AccountId property.
7978
*/
8079
public void setAccountId(String value) {
8180
this.accountId = value;
8281
}
83-
84-
/**
85-
* Gets the UserAgent property.
86-
*/
87-
public String getUserAgent() {
88-
return this.userAgent;
89-
}
90-
91-
/**
92-
* Sets the UserAgent property.
93-
*/
94-
public void setUserAgent(String value) {
95-
this.userAgent = value;
96-
}
97-
82+
9883
/**
9984
* Gets the Id property.
10085
*/
10186
public String getId() {
10287
return this.id;
10388
}
104-
89+
10590
/**
10691
* Sets the Id property.
10792
*/
10893
public void setId(String value) {
10994
this.id = value;
11095
}
111-
96+
11297
/**
11398
* Gets the AuthUserId property.
11499
*/
115100
public String getAuthUserId() {
116101
return this.authUserId;
117102
}
118-
103+
119104
/**
120105
* Sets the AuthUserId property.
121106
*/
122107
public void setAuthUserId(String value) {
123108
this.authUserId = value;
124109
}
125-
110+
126111

127112
/**
128113
* Adds all members of this class to a hashmap
@@ -133,17 +118,14 @@ public void addToHashMap(HashMap<String, String> map)
133118
if (this.accountId != null) {
134119
map.put("accountId", this.accountId);
135120
}
136-
if (this.userAgent != null) {
137-
map.put("userAgent", this.userAgent);
138-
}
139121
if (this.id != null) {
140122
map.put("id", this.id);
141123
}
142124
if (this.authUserId != null) {
143125
map.put("authUserId", this.authUserId);
144126
}
145127
}
146-
128+
147129

148130
/**
149131
* Serializes the beginning of this object to the passed in writer.
@@ -163,15 +145,14 @@ public void serialize(JsonTelemetryDataSerializer writer) throws IOException
163145
protected void serializeContent(JsonTelemetryDataSerializer writer) throws IOException
164146
{
165147
writer.write("accountId", accountId);
166-
writer.write("userAgent", userAgent);
167148
writer.write("id", id);
168149
writer.write("authUserId", authUserId);
169150
}
170-
151+
171152
/**
172153
* Optionally initializes fields for the current context.
173154
*/
174155
protected void InitializeFields() {
175-
156+
176157
}
177158
}

0 commit comments

Comments
 (0)