This inspection reports any attempt to instantiate a new String object by copying an existing string. Constructing new String objects in this way is rarely necessary, and may cause performance problems if done often enough.

Use the check box below to ignore String constructor calls which have a String.substring() call as parameter. A call to substring() reuses the character array of the original string, which can cause a large amount of garbage to stay in memory if the substring is small in relation to the original String.