You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
... to avoid NullPointerExceptions and make writing plain unit-tests easier.
Problem description:
Play has lot of public static field - first of all, Play.configuration
Many classes do use these public static fields
When writing unit-test or main method, developers always need to write null checks and boilerplate code for Play initialization, e.g.: if (Play.configuration == null) Play.coniguration = new Properties();
We want to improve it.
Let's initialize early as many Play fields as possible.
The text was updated successfully, but these errors were encountered:
... to avoid
NullPointerException
s and make writing plain unit-tests easier.Problem description:
public static
field - first of all,Play.configuration
public static
fieldsif (Play.configuration == null) Play.coniguration = new Properties();
We want to improve it.
Let's initialize early as many Play fields as possible.
The text was updated successfully, but these errors were encountered: