Skip to content

Commit ef421d7

Browse files
committed
make Channels.from non-public API
1 parent aee6d77 commit ef421d7

File tree

1 file changed

+2
-16
lines changed
  • libraries/networking/src/main/java/net/ornithemc/osl/networking/api

1 file changed

+2
-16
lines changed

libraries/networking/src/main/java/net/ornithemc/osl/networking/api/Channels.java

Lines changed: 2 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -22,25 +22,11 @@ public final class Channels {
2222
*/
2323
public static final int MAX_LENGTH_DESCRIPTION = Byte.MAX_VALUE;
2424

25-
/**
26-
* Construct a channel with the default namespace and the given description.
27-
*
28-
* @deprecated
29-
* Use {@link Channels#make(String)} instead.
30-
*/
31-
@Deprecated
32-
public static Channel from(String description) {
25+
static Channel from(String description) {
3326
return from(DEFAULT_NAMESPACE, description);
3427
}
3528

36-
/**
37-
* Construct a channel from the given namespace and description.
38-
*
39-
* @deprecated
40-
* Use {@link Channels#make(String, String)} instead.
41-
*/
42-
@Deprecated
43-
public static Channel from(String namespace, String description) {
29+
static Channel from(String namespace, String description) {
4430
return new Channel(namespace, description);
4531
}
4632

0 commit comments

Comments
 (0)