mirror of
https://github.com/github/codeql.git
synced 2025-12-25 05:06:34 +01:00
10 lines
294 B
Java
10 lines
294 B
Java
public void sayHello(String world) {
|
|
// AVOID: Inefficient 'String' constructor
|
|
String message = new String("hello ");
|
|
|
|
// AVOID: Inefficient 'String' constructor
|
|
message = new String(message + world);
|
|
|
|
// AVOID: Inefficient 'String' constructor
|
|
System.out.println(new String(message));
|
|
} |