Fix the implementation smells in ExclusiveMaximumValidator.java by reducing complex condition and segregating them into different methods, added another method called addFieldsToMappingWithCheck in BaseJsonValidator class, which adds the field to mapping by doing some null checking which reduces the cyclomatic complexity of registerAndMergeDiscriminator method, and make it clear and understandable and Lastly changed the method name from "from" to "extractSchemaRefFromSchema" in JsonSchemaRef which makes it more descriptive. The method name explains what it does and helps the new contributor understand the method's purpose without going through the whole code.
Fix the implementation smells in ExclusiveMaximumValidator.java by reducing complex condition and segregating them into different methods, added another method called addFieldsToMappingWithCheck in BaseJsonValidator class, which adds the field to mapping by doing some null checking which reduces the cyclomatic complexity of registerAndMergeDiscriminator method, and make it clear and understandable and Lastly changed the method name from "from" to "extractSchemaRefFromSchema" in JsonSchemaRef which makes it more descriptive. The method name explains what it does and helps the new contributor understand the method's purpose without going through the whole code.