Details
-
Improvement
-
Status: Closed
-
Trivial
-
Resolution: Fixed
-
3.1.1, 4.0.0
-
None
-
None
Description
public static String generatePath(Path baseURI, String filename) { String path = new String(baseURI + Path.SEPARATOR + filename); return path; } public static String generateFileName(Byte tag, String bigBucketFileName) { String fileName = new String("MapJoin-" + tag + "-" + bigBucketFileName + suffix); return fileName; }
It's a bit odd to be performing string concatenation and then wrapping the results in a new string. This is creating superfluous String objects.