blafoo/c-geo-opensource — comment on commit f96b3157965b01ad771aab2a60669e19ad90a67e
File: main/src/cgeo/geocaching/utils/BaseUtils.java line 47
By samueltardieu:

It is a new string, but with the same storage, so it does not free the larger string.

And I checked the implementation by reading `system/dalvik/libcore/luni/src/main/java/java/lang/String.java` in my local copy of Android sources. The SDK won't contain the code for standard Java packages.