Skip to content

Commit adcaa0e

Browse files
committed
more checkstyle fixes
1 parent fbea872 commit adcaa0e

File tree

5 files changed

+45
-0
lines changed

5 files changed

+45
-0
lines changed

lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/fdv2/payloads/FDv2Event.java

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,34 +141,49 @@ public ServerIntent asServerIntent() throws SerializationException {
141141

142142
/**
143143
* Deserializes the data element as a PutObject.
144+
*
145+
* @return the deserialized PutObject
146+
* @throws SerializationException if deserialization fails
144147
*/
145148
public PutObject asPutObject() throws SerializationException {
146149
return deserializeAs(EVENT_PUT_OBJECT, PutObject::parse);
147150
}
148151

149152
/**
150153
* Deserializes the data element as a DeleteObject.
154+
*
155+
* @return the deserialized DeleteObject
156+
* @throws SerializationException if deserialization fails
151157
*/
152158
public DeleteObject asDeleteObject() throws SerializationException {
153159
return deserializeAs(EVENT_DELETE_OBJECT, DeleteObject::parse);
154160
}
155161

156162
/**
157163
* Deserializes the data element as a PayloadTransferred.
164+
*
165+
* @return the deserialized PayloadTransferred
166+
* @throws SerializationException if deserialization fails
158167
*/
159168
public PayloadTransferred asPayloadTransferred() throws SerializationException {
160169
return deserializeAs(EVENT_PAYLOAD_TRANSFERRED, PayloadTransferred::parse);
161170
}
162171

163172
/**
164173
* Deserializes the data element as an Error.
174+
*
175+
* @return the deserialized Error
176+
* @throws SerializationException if deserialization fails
165177
*/
166178
public Error asError() throws SerializationException {
167179
return deserializeAs(EVENT_ERROR, Error::parse);
168180
}
169181

170182
/**
171183
* Deserializes the data element as a Goodbye.
184+
*
185+
* @return the deserialized Goodbye
186+
* @throws SerializationException if deserialization fails
172187
*/
173188
public Goodbye asGoodbye() throws SerializationException {
174189
return deserializeAs(EVENT_GOODBYE, Goodbye::parse);
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This package contains FDv2 payload types and event handling.
3+
* <p>
4+
* All types in this package are for internal LaunchDarkly use only, and are subject to change.
5+
* They are not part of the public supported API of the SDKs, and they should not be referenced
6+
* by application code. They have public scope only because they need to be available to
7+
* LaunchDarkly SDK code in other packages.
8+
*/
9+
package com.launchdarkly.sdk.internal.fdv2.payloads;
10+

lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/fdv2/sources/FDv2ChangeSet.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -90,6 +90,8 @@ public int getVersion() {
9090

9191
/**
9292
* The raw JSON string representing the object data (only present for Put operations).
93+
*
94+
* @return the raw JSON element representing the object data
9395
*/
9496
public JsonElement getObject() {
9597
return object;
@@ -115,20 +117,26 @@ public FDv2ChangeSet(FDv2ChangeSetType type, List<FDv2Change> changes, Selector
115117

116118
/**
117119
* The intent code indicating how the server intends to transfer data.
120+
*
121+
* @return the type of changeset
118122
*/
119123
public FDv2ChangeSetType getType() {
120124
return type;
121125
}
122126

123127
/**
124128
* The list of changes in this changeset. May be empty if there are no changes.
129+
*
130+
* @return the list of changes in this changeset
125131
*/
126132
public List<FDv2Change> getChanges() {
127133
return changes;
128134
}
129135

130136
/**
131137
* The selector (version identifier) for this changeset.
138+
*
139+
* @return the selector for this changeset
132140
*/
133141
public Selector getSelector() {
134142
return selector;

lib/shared/internal/src/main/java/com/launchdarkly/sdk/internal/fdv2/sources/FDv2ProtocolHandler.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -311,6 +311,8 @@ public IFDv2ProtocolAction handleEvent(FDv2Event evt) {
311311

312312
/**
313313
* Get a list of event types which are handled by the protocol handler.
314+
*
315+
* @return the list of handled event types
314316
*/
315317
public static List<String> getHandledEventTypes() {
316318
return HANDLED_EVENT_TYPES;
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This package contains FDv2 protocol handler and related source functionality.
3+
* <p>
4+
* All types in this package are for internal LaunchDarkly use only, and are subject to change.
5+
* They are not part of the public supported API of the SDKs, and they should not be referenced
6+
* by application code. They have public scope only because they need to be available to
7+
* LaunchDarkly SDK code in other packages.
8+
*/
9+
package com.launchdarkly.sdk.internal.fdv2.sources;
10+

0 commit comments

Comments
 (0)