SpringSource/spring-framework — pull request #57 by sslavic (2012-03-13 19:23:12+00:00)
Title: Fix constant name lookup for null name prefix

Even though javadoc fo Constants.toCode specifies that null value for
namePrefix parameter is allowed, before this change pasing null would
throw NullPointerException.

This change fixes constant name lookup for null name prefix as if empty
name prefix was used so that all names match, and lookup is performed
only by constant value. This way of handling null value for name prefix
is consistent with the rest of Constants class API.

Issue: SPR-8278

I have signed and agree to the terms in the SpringSource Individual Contributor License Agreement.