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

Add default methods to DocValueFormat #36480

Merged

Commits on Dec 11, 2018

  1. Add default methods to DocValueFormat

    The different DocValueFormat implementors throw `UnsupportedOperationException` for methods that they don't support. That is perfectly fine, and quite common as not all implementors support all of the possible formats. This makes it hard though to trace back which implementors support which formats as they all implement the same methods.
    
    This commit introduces default methods in the `DocValueFormat` interface so that all methods throw `UnsupportedOperationException` by default. This way implementors can override only the methods that they specifically support.
    javanna committed Dec 11, 2018
    Configuration menu
    Copy the full SHA
    051b580 View commit details
    Browse the repository at this point in the history