Skip to content

Commit 4c24e36

Browse files
committed
chore: override write BotBuilderPropertiesConfiguration#toString
1 parent 9c1ef3f commit 4c24e36

File tree

1 file changed

+8
-0
lines changed

1 file changed

+8
-0
lines changed

botbuilder-spring-boot-autoconfig/src/main/java/io/github/powerbotkit/autoconfigure/BotBuilderPropertiesConfiguration.java

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44

55
import java.util.Objects;
66
import java.util.Properties;
7+
import java.util.StringJoiner;
78

89
public class BotBuilderPropertiesConfiguration implements Configuration {
910

@@ -33,4 +34,11 @@ public BotBuilderPropertiesConfiguration(BotBuilderProperties botBuilderProperti
3334
this.properties.setProperty(MICROSOFTAPPID, Objects.isNull(botBuilderProperties.getMicrosoftAppId()) ? "" : botBuilderProperties.getMicrosoftAppId());
3435
this.properties.setProperty(MICROSOFTAPPPASSWORD, Objects.isNull(botBuilderProperties.getMicrosoftAppPassword()) ? "" : botBuilderProperties.getMicrosoftAppPassword());
3536
}
37+
38+
@Override
39+
public String toString() {
40+
return new StringJoiner(", ", BotBuilderPropertiesConfiguration.class.getSimpleName() + "[", "]")
41+
.add("properties=" + properties)
42+
.toString();
43+
}
3644
}

0 commit comments

Comments
 (0)