Add @Nonnull Constraint checking to SpringSuport.newContext()

Description

There is a theoretically possible NPE in SpringSupport.newContext() if configurationResources is null :

beanDefinitionReader.loadBeanDefinitions(configurationResources.toArray(new Resource[] {}));

Of course, the method parameter is annotated with @Nonnull, but we don't have a Constraint. And it's unlikely for a null to get this far down.

Environment

None

Activity

Rod Widdowson 
September 9, 2016 at 3:22 PM

fixed 8737208.

At the same time I added constraints for both annotations @Nonnull and @NonnullElements to all four appropriate parameters

Fixed

Details

Assignee

Reporter

Fix versions

Affects versions

Created September 7, 2016 at 4:06 PM
Updated November 11, 2016 at 12:29 AM
Resolved September 9, 2016 at 3:22 PM