Skip to content

Commit

Permalink
Remove some unnecessary toString
Browse files Browse the repository at this point in the history
  • Loading branch information
voruti committed Aug 7, 2021
1 parent f3138f5 commit 71678d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 9 deletions.
Original file line number Diff line number Diff line change
@@ -1,13 +1,12 @@
package voruti.json2config.model.json;

import lombok.Getter;
import lombok.ToString;
import voruti.json2config.model.IConvertible;

import java.util.List;

@SuppressWarnings("unused")
@Getter
@ToString
public class JsonChannelLink implements IConvertible {

private Value value;
Expand All @@ -20,23 +19,20 @@ public String toConfigLine(String lineBefore) {


@Getter
@ToString
public static class Value {
private ChannelUID channelUID;
private Configuration configuration;
private String itemName;


@ToString
private static class ChannelUID {
private List<String> segments;
}

@ToString
private static class Configuration {
private Properties properties;

@ToString

private static class Properties {
private String offset;
private String profile;
Expand Down
3 changes: 0 additions & 3 deletions src/main/java/voruti/json2config/model/json/JsonItem.java
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
package voruti.json2config.model.json;

import lombok.ToString;
import voruti.json2config.model.IConvertible;

import java.util.List;
import java.util.Set;
import java.util.StringJoiner;

@ToString
public class JsonItem implements IConvertible {

private Value value;
Expand Down Expand Up @@ -60,7 +58,6 @@ public String toConfigLine(String name) {
}


@ToString
private static class Value {
private String baseItemType;
private List<String> groupNames;
Expand Down

0 comments on commit 71678d4

Please sign in to comment.