Skip to content

Commit 72563d5

Browse files
committed
Correct Users javadoc
1 parent 2aeea4a commit 72563d5

3 files changed

Lines changed: 8 additions & 8 deletions

File tree

gooddata-java-model/src/main/java/com/gooddata/sdk/model/project/Users.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2004-2019, GoodData(R) Corporation. All rights reserved.
2+
* Copyright (C) 2004-2021, GoodData(R) Corporation. All rights reserved.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
@@ -16,13 +16,14 @@
1616

1717
import java.util.List;
1818

19+
import static com.gooddata.sdk.model.project.Users.ROOT_NODE;
1920
import static java.util.Arrays.asList;
2021

2122
/**
22-
* List of users. Deserialization only.
23+
* List of users.
2324
*/
2425
@JsonTypeInfo(include = JsonTypeInfo.As.WRAPPER_OBJECT, use = Id.NONE)
25-
@JsonTypeName("users")
26+
@JsonTypeName(ROOT_NODE)
2627
@JsonIgnoreProperties(ignoreUnknown = true)
2728
@JsonDeserialize(using = UsersDeserializer.class)
2829
@JsonSerialize(using = UsersSerializer.class)

gooddata-java-model/src/main/java/com/gooddata/sdk/model/project/UsersDeserializer.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (C) 2004-2019, GoodData(R) Corporation. All rights reserved.
2+
* Copyright (C) 2004-2021, GoodData(R) Corporation. All rights reserved.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
@@ -14,7 +14,7 @@
1414
class UsersDeserializer extends PageDeserializer<Users, User> {
1515

1616
protected UsersDeserializer() {
17-
super(User.class, "users");
17+
super(User.class, Users.ROOT_NODE);
1818
}
1919

2020
@Override

gooddata-java-model/src/main/java/com/gooddata/sdk/model/project/UsersSerializer.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,12 @@
11
/*
2-
* Copyright (C) 2004-2019, GoodData(R) Corporation. All rights reserved.
2+
* Copyright (C) 2004-2021, GoodData(R) Corporation. All rights reserved.
33
* This source code is licensed under the BSD-style license found in the
44
* LICENSE.txt file in the root directory of this source tree.
55
*/
66
package com.gooddata.sdk.model.project;
77

88

99
import com.fasterxml.jackson.core.JsonGenerator;
10-
import com.fasterxml.jackson.core.JsonProcessingException;
1110
import com.fasterxml.jackson.core.ObjectCodec;
1211
import com.fasterxml.jackson.databind.JsonSerializer;
1312
import com.fasterxml.jackson.databind.SerializerProvider;
@@ -20,7 +19,7 @@
2019
class UsersSerializer extends JsonSerializer<Users> {
2120

2221
@Override
23-
public void serialize(final Users users, final JsonGenerator jgen, final SerializerProvider serializerProvider) throws IOException, JsonProcessingException {
22+
public void serialize(final Users users, final JsonGenerator jgen, final SerializerProvider serializerProvider) throws IOException {
2423
jgen.writeStartObject();
2524
jgen.writeFieldName(Users.ROOT_NODE);
2625

0 commit comments

Comments
 (0)