Do not use intern() for String constants

Looking at some Java code:

Context.join(className, "executeBatch".intern());

intern() method is rarely needed and is definitely not needed in situations when you deal with String constants, which are already interned by definition.

See Javadoc: String (Java Platform SE 6)

Here is the “source of all truths” — Java Language Specification.

Chapter 3.10.5: Chapter 3. Lexical Structure
a string literal always refers to the same instance of class String. This is because string literals — or, more generally, strings that are the values of constant expressions (§15.28) — are “interned” so as to share unique instances, using the method String.intern.