Skip to content

Commit 4cc3786

Browse files
committed
doc: add javadocs and package-info.java
1 parent b43b331 commit 4cc3786

File tree

3 files changed

+20
-0
lines changed

3 files changed

+20
-0
lines changed

application/src/main/java/org/togetherjava/tjbot/config/DynamicVoiceChatConfig.java

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,10 @@ public record DynamicVoiceChatConfig(
2323
@JsonProperty(value = "cleanChannelsAmount") int cleanChannelsAmount,
2424
@JsonProperty(value = "minimumChannelsAmount", required = true) int minimumChannelsAmount) {
2525

26+
/**
27+
* Constructs an instance of {@code DynamicVoiceChatConfig} and throws if
28+
* {@code dynamicChannelPatterns} or @{code archiveCategoryPattern} is null.
29+
*/
2630
public DynamicVoiceChatConfig {
2731
Objects.requireNonNull(dynamicChannelPatterns);
2832
Objects.requireNonNull(archiveCategoryPattern);

application/src/main/java/org/togetherjava/tjbot/features/voicechat/DynamicVoiceChat.java

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ public final class DynamicVoiceChat extends VoiceReceiverAdapter {
3535
private final VoiceChatCleanupStrategy voiceChatCleanupStrategy;
3636
private final DynamicVoiceChatConfig dynamicVoiceChannelConfig;
3737

38+
/**
39+
* Creates a new instance of {@code DynamicVoiceChat}
40+
*
41+
* @param config the configurations needed for this feature. See:
42+
* {@link org.togetherjava.tjbot.config.DynamicVoiceChatConfig}
43+
*/
3844
public DynamicVoiceChat(Config config) {
3945
this.dynamicVoiceChannelConfig = config.getDynamicVoiceChatConfig();
4046

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
/**
2+
* This package contains classes for the dynamic voice chat functionality.
3+
*/
4+
@MethodsReturnNonnullByDefault
5+
@ParametersAreNonnullByDefault
6+
package org.togetherjava.tjbot.features.voicechat;
7+
8+
import org.togetherjava.tjbot.annotations.MethodsReturnNonnullByDefault;
9+
10+
import javax.annotation.ParametersAreNonnullByDefault;

0 commit comments

Comments
 (0)