DM_STRING_CTOR

Dm: invokes inefficient new String(String) constructor
如果把String傳入new String中,等於多做一次額外的new String。

Using the java.lang.String(String) constructor wastes memory because the object so constructed will be functionally indistinguishable from the String passed as a parameter. Just use the argument String directly.
直接把傳入值Assign過去即可。

Before:

String str = new String("testingStr");

After:

String str = "testingStr";

友藏內心的獨白: 會不會有要產生不同instance但相同內容的情況?