Skip to content

Commit

Permalink
Fixed code smell
Browse files Browse the repository at this point in the history
  • Loading branch information
w3stling committed Aug 20, 2023
1 parent c55ea8e commit f4cbe89
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -86,6 +86,7 @@ protected AbstractRssReader(HttpClient httpClient) {
*
* @return channel
*/
@SuppressWarnings("java:S1133")
@Deprecated(since="3.5.0", forRemoval=true)
protected C createChannel() {
return null;
Expand All @@ -107,6 +108,7 @@ protected C createChannel() {
*
* @return item
*/
@SuppressWarnings("java:S1133")
@Deprecated(since="3.5.0", forRemoval=true)
protected I createItem() {
return null;
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/apptasticsoftware/rssreader/Channel.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,7 @@ public class Channel {
* @deprecated
* Use {@link Channel#Channel(DateTimeParser)} instead.
*/
@SuppressWarnings("java:S1133")
@Deprecated(since="3.5.0", forRemoval=true)
public Channel() {
dateTimeParser = new DateTime();
Expand Down
1 change: 1 addition & 0 deletions src/main/java/com/apptasticsoftware/rssreader/Item.java
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,7 @@ public class Item implements Comparable<Item> {
* @deprecated
* Use {@link Item#Item(DateTimeParser)} instead.
*/
@SuppressWarnings("java:S1133")
@Deprecated(since="3.5.0", forRemoval=true)
public Item() {
dateTimeParser = new DateTime();
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@
import static org.junit.jupiter.api.Assertions.*;


@SuppressWarnings("java:S5976")
class DateTimeTest {

@Test
Expand Down

0 comments on commit f4cbe89

Please sign in to comment.