style(java): switch to google formatter · jaymicrocode/java-sdk@b1bd5ef · GitHub
Skip to content

Commit b1bd5ef

Browse files
style(java): switch to google formatter
See https://github.com/google/google-java-format
1 parent 2ad3806 commit b1bd5ef

832 files changed

Lines changed: 22427 additions & 23184 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

assistant/src/main/java/com/ibm/watson/assistant/v1/Assistant.java

Lines changed: 923 additions & 659 deletions
Large diffs are not rendered by default.

assistant/src/main/java/com/ibm/watson/assistant/v1/model/CaptureGroup.java

Lines changed: 11 additions & 21 deletions

assistant/src/main/java/com/ibm/watson/assistant/v1/model/Context.java

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,26 +17,28 @@
1717
import com.ibm.cloud.sdk.core.service.model.DynamicModel;
1818

1919
/**
20-
* State information for the conversation. To maintain state, include the context from the previous response.
20+
* State information for the conversation. To maintain state, include the context from the previous
21+
* response.
2122
*/
2223
public class Context extends DynamicModel<Object> {
2324

2425
@SerializedName("conversation_id")
2526
protected String conversationId;
27+
2628
@SerializedName("system")
2729
protected SystemResponse system;
30+
2831
@SerializedName("metadata")
2932
protected MessageContextMetadata metadata;
3033

3134
public Context() {
32-
super(new TypeToken<Object>() {
33-
});
35+
super(new TypeToken<Object>() {});
3436
}
3537

3638
/**
3739
* Gets the conversationId.
3840
*
39-
* The unique identifier of the conversation.
41+
* <p>The unique identifier of the conversation.
4042
*
4143
* @return the conversationId
4244
*/
@@ -56,7 +58,7 @@ public void setConversationId(final String conversationId) {
5658
/**
5759
* Gets the system.
5860
*
59-
* For internal use only.
61+
* <p>For internal use only.
6062
*
6163
* @return the system
6264
*/
@@ -76,7 +78,7 @@ public void setSystem(final SystemResponse system) {
7678
/**
7779
* Gets the metadata.
7880
*
79-
* Metadata related to the message.
81+
* <p>Metadata related to the message.
8082
*
8183
* @return the metadata
8284
*/

assistant/src/main/java/com/ibm/watson/assistant/v1/model/Counterexample.java

Lines changed: 11 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -12,22 +12,17 @@
1212
*/
1313
package com.ibm.watson.assistant.v1.model;
1414

15-
import java.util.Date;
16-
1715
import com.ibm.cloud.sdk.core.service.model.GenericModel;
16+
import java.util.Date;
1817

19-
/**
20-
* Counterexample.
21-
*/
18+
/** Counterexample. */
2219
public class Counterexample extends GenericModel {
2320

2421
protected String text;
2522
protected Date created;
2623
protected Date updated;
2724

28-
/**
29-
* Builder.
30-
*/
25+
/** Builder. */
3126
public static class Builder {
3227
private String text;
3328
private Date created;
@@ -39,11 +34,8 @@ private Builder(Counterexample counterexample) {
3934
this.updated = counterexample.updated;
4035
}
4136

42-
/**
43-
* Instantiates a new builder.
44-
*/
45-
public Builder() {
46-
}
37+
/** Instantiates a new builder. */
38+
public Builder() {}
4739

4840
/**
4941
* Instantiates a new builder with required properties.
@@ -98,8 +90,7 @@ public Builder updated(Date updated) {
9890
}
9991

10092
protected Counterexample(Builder builder) {
101-
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.text,
102-
"text cannot be null");
93+
com.ibm.cloud.sdk.core.util.Validator.notNull(builder.text, "text cannot be null");
10394
text = builder.text;
10495
created = builder.created;
10596
updated = builder.updated;
@@ -117,9 +108,9 @@ public Builder newBuilder() {
117108
/**
118109
* Gets the text.
119110
*
120-
* The text of a user input marked as irrelevant input. This string must conform to the following restrictions:
121-
* - It cannot contain carriage return, newline, or tab characters.
122-
* - It cannot consist of only whitespace characters.
111+
* <p>The text of a user input marked as irrelevant input. This string must conform to the
112+
* following restrictions: - It cannot contain carriage return, newline, or tab characters. - It
113+
* cannot consist of only whitespace characters.
123114
*
124115
* @return the text
125116
*/
@@ -130,7 +121,7 @@ public String text() {
130121
/**
131122
* Gets the created.
132123
*
133-
* The timestamp for creation of the object.
124+
* <p>The timestamp for creation of the object.
134125
*
135126
* @return the created
136127
*/
@@ -141,7 +132,7 @@ public Date created() {
141132
/**
142133
* Gets the updated.
143134
*
144-
* The timestamp for the most recent update to the object.
135+
* <p>The timestamp for the most recent update to the object.
145136
*
146137
* @return the updated
147138
*/

assistant/src/main/java/com/ibm/watson/assistant/v1/model/CounterexampleCollection.java

Lines changed: 4 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,13 +12,10 @@
1212
*/
1313
package com.ibm.watson.assistant.v1.model;
1414

15-
import java.util.List;
16-
1715
import com.ibm.cloud.sdk.core.service.model.GenericModel;
16+
import java.util.List;
1817

19-
/**
20-
* CounterexampleCollection.
21-
*/
18+
/** CounterexampleCollection. */
2219
public class CounterexampleCollection extends GenericModel {
2320

2421
protected List<Counterexample> counterexamples;
@@ -27,7 +24,7 @@ public class CounterexampleCollection extends GenericModel {
2724
/**
2825
* Gets the counterexamples.
2926
*
30-
* An array of objects describing the examples marked as irrelevant input.
27+
* <p>An array of objects describing the examples marked as irrelevant input.
3128
*
3229
* @return the counterexamples
3330
*/
@@ -38,7 +35,7 @@ public List<Counterexample> getCounterexamples() {
3835
/**
3936
* Gets the pagination.
4037
*
41-
* The pagination data for the returned objects.
38+
* <p>The pagination data for the returned objects.
4239
*
4340
* @return the pagination
4441
*/

assistant/src/main/java/com/ibm/watson/assistant/v1/model/CreateCounterexampleOptions.java

Lines changed: 13 additions & 20 deletions

0 commit comments

Comments
 (0)