Skip to content

Commit 393ef10

Browse files
committed
Exclude BrowserStackClient from serialization
1 parent 464587c commit 393ef10

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/main/java/com/browserstack/client/model/BrowserStackObject.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,21 @@
11
package com.browserstack.client.model;
22

33
import com.browserstack.client.BrowserStackClient;
4+
import com.fasterxml.jackson.annotation.JsonIgnore;
45

56
import java.io.Serializable;
67

78

89
public abstract class BrowserStackObject implements Serializable {
910
private transient BrowserStackClient client;
1011

12+
@JsonIgnore
1113
public BrowserStackClient getClient() {
1214
return client;
1315
}
1416

1517
@SuppressWarnings("unchecked")
18+
@JsonIgnore
1619
public <T> T setClient(BrowserStackClient client) {
1720
this.client = client;
1821
return (T) this;

0 commit comments

Comments
 (0)