Skip to content

Commit c29d66f

Browse files
authored
Merge pull request #1 from browserstack/fix-serialization
Fix serialization
2 parents 20bb618 + c968a80 commit c29d66f

File tree

3 files changed

+25
-1
lines changed

3 files changed

+25
-1
lines changed

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<groupId>com.browserstack</groupId>
88
<artifactId>automate-client-java</artifactId>
99
<name>automate-client</name>
10-
<version>0.1-SNAPSHOT</version>
10+
<version>0.2-SNAPSHOT</version>
1111
<packaging>jar</packaging>
1212

1313
<licenses>

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;
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
The MIT License (MIT)
2+
3+
Copyright (c) 2016 BrowserStack
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in
13+
all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
21+
THE SOFTWARE.

0 commit comments

Comments
 (0)