I am doing a java code inspection. Here is a function (snippet):
String getValue() { String res; StringBuilder strBuilder = new StringBuilder();
Can also be written as:
String getValue() { return new StringBuilder().toString(); }