JodaOrg/joda-time — pull request #103 by jperezalv (2013-12-31 13:01:00+00:00)
Title: ZoneInfoProvider.getZone(String) throws a ClassCastException in some Android implementations of the String class

String.equals(SoftReference) throws a ClassCastException in some Android implementations during a LocalDate.now() call:

```
Caused by: java.lang.ClassCastException: java.lang.ref.SoftReference cannot be cast to java.lang.String
at com.hooks.Hooks.java_lang_String_VTequals(Hooks.java:7540)
at org.joda.time.tz.ZoneInfoProvider.getZone(ZoneInfoProvider.java:145)
at org.joda.time.DateTimeZone.setProvider0(DateTimeZone.java:426)
at org.joda.time.DateTimeZone.(DateTimeZone.java:116)
... 17 more
```

Reordering the code would check first the instanceof case and only then call the .equals() method with an object of a type that it's not a SoftReference.