Skip to content

Unused default LoadingConfiguration in JsonSchemaFactoryBuilder. #290

@Capstan

Description

@Capstan

In our test infrastructure, we restrict thread creation for "small" tests. In upgrading from v1.6.2 to v2.2.10, we found the new JsonSchemaFactoryBuilder will uniformly create the default LoadingConfiguration, even if it gets replaced by a custom config, and that has a side-effect of loading some unused error messages in URIUtils.java, which spawns a thread.

Perhaps if the Builder's init left the reportProvider, loadingCfg, and validationCfg as null, and moved the application of defaults to remaining null values in freeze(), the unused defaults would never be created in the first place.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions