Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Improve consistency in API of FormFields maxFields and maxLength #12718

Open
wants to merge 6 commits into
base: jetty-12.1.x
Choose a base branch
from

Conversation

lachlan-roberts
Copy link
Contributor

I don't like the usage of -1 for a default maxFields and maxLength value as we already have methods which don't take these maxFields and maxLength parameters which will give you a default value anyway.

But if we decide to use -1 for a default value we should make it consistent across the other non-deprecated methods.

Methods like CompletableFuture<Fields> from(Request request, Charset charset, int maxFields, int maxLength) are still using -1 for unlimited, but these are deprecated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: 👀 In review
Development

Successfully merging this pull request may close these issues.

1 participant