Skip to content

Commit

Permalink
codestyle: do not use deprecated methods, annotate httpServer() impl …
Browse files Browse the repository at this point in the history
…with @deprecated
  • Loading branch information
yusshu committed Dec 1, 2023
1 parent 75eb5e5 commit 15544f5
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,7 @@ default BuiltResourcePack build(ResourcePack resourcePack) {
}

default BuiltResourcePack build(Consumer<ResourcePack> consumer) {
ResourcePack resourcePack = ResourcePack.create();
ResourcePack resourcePack = ResourcePack.resourcePack();
consumer.accept(resourcePack);
return build(resourcePack);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ final class ResourcePackServerImpl implements ResourcePackServer {
}

@Override
@Deprecated
public @NotNull HttpServer httpServer() {
return server;
}
Expand Down

0 comments on commit 15544f5

Please sign in to comment.