Skip to content

Commit b616629

Browse files
committed
Some javadoc for sonar
1 parent 09a7e6c commit b616629

File tree

12 files changed

+37
-2
lines changed

12 files changed

+37
-2
lines changed

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/WolframAlphaHandler.java

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -244,10 +244,12 @@ record HandlerResponse(@NotNull List<MessageEmbed> embeds,
244244
record Attachment(@NotNull String name, byte @NotNull [] data) {
245245
@Override
246246
public boolean equals(Object o) {
247-
if (this == o)
247+
if (this == o) {
248248
return true;
249-
if (o == null || getClass() != o.getClass())
249+
}
250+
if (o == null || getClass() != o.getClass()) {
250251
return false;
252+
}
251253
Attachment that = (Attachment) o;
252254
return name.equals(that.name) && Arrays.equals(data, that.data);
253255
}

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/DidYouMean.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import com.fasterxml.jackson.annotation.JsonRootName;
55
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;
66

7+
/**
8+
* See the Wolfram Alpha API.
9+
*/
710
@JsonRootName("didyoumean")
811
@JsonIgnoreProperties(ignoreUnknown = true)
912
public final class DidYouMean {

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/Error.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import com.fasterxml.jackson.annotation.JsonProperty;
55
import com.fasterxml.jackson.annotation.JsonRootName;
66

7+
/**
8+
* See the Wolfram Alpha API.
9+
*/
710
@JsonRootName("error")
811
@JsonIgnoreProperties(ignoreUnknown = true)
912
public final class Error {

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/ExamplePage.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import com.fasterxml.jackson.annotation.JsonRootName;
55
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
66

7+
/**
8+
* See the Wolfram Alpha API.
9+
*/
710
@JsonRootName("examplepage")
811
@JsonIgnoreProperties(ignoreUnknown = true)
912
public final class ExamplePage {

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/PlainText.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import com.fasterxml.jackson.annotation.JsonRootName;
55
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlText;
66

7+
/**
8+
* See the Wolfram Alpha API.
9+
*/
710
@JsonRootName("plaintext")
811
@JsonIgnoreProperties(ignoreUnknown = true)
912
public final class PlainText {

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/Pod.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
import java.util.Collections;
1111
import java.util.List;
1212

13+
/**
14+
* See the Wolfram Alpha API.
15+
*/
1316
@JsonRootName("pod")
1417
@JsonIgnoreProperties(ignoreUnknown = true)
1518
public final class Pod {

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/QueryResult.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
import java.util.List;
1111
import java.util.Map;
1212

13+
/**
14+
* See the Wolfram Alpha API.
15+
*/
1316
@JsonRootName("queryresult")
1417
@JsonIgnoreProperties(ignoreUnknown = true)
1518
public final class QueryResult {

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/RelatedExample.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@
44
import com.fasterxml.jackson.annotation.JsonRootName;
55
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
66

7+
/**
8+
* See the Wolfram Alpha API.
9+
*/
710
@JsonRootName("relatedexample")
811
@JsonIgnoreProperties(ignoreUnknown = true)
912
public final class RelatedExample {

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/RelatedExamples.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@
1010
import java.util.ArrayList;
1111
import java.util.Collections;
1212

13+
/**
14+
* See the Wolfram Alpha API.
15+
*/
1316
@JsonRootName("relatedexamples")
1417
@JsonIgnoreProperties(ignoreUnknown = true)
1518
public final class RelatedExamples {

application/src/main/java/org/togetherjava/tjbot/commands/mathcommands/wolframalpha/api/SubPod.java

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@
55
import com.fasterxml.jackson.annotation.JsonRootName;
66
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
77

8+
/**
9+
* See the Wolfram Alpha API.
10+
*/
811
@JsonRootName("subpod")
912
@JsonIgnoreProperties(ignoreUnknown = true)
1013
public final class SubPod {

0 commit comments

Comments
 (0)