FazBrowse GitHub Viewer
|
Trending
|
URL:
|
Home
Tools:
[Download Repo ZIP]
[View Raw Code]
[Original HTTPS Page]
codeql/java/ql/src/Performance/NewStringString.java at main · github/codeql · GitHub
github
codeql
Repository navigation
Code
Issues
1k
(1k)
Pull requests
474
(474)
Discussions
Actions
Projects
Security and quality
Insights
Expand file tree
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Performance
/
NewStringString.java
Copy path
More file actions
More file actions
Latest commit
History
History
History
10 lines (8 loc) · 294 Bytes
Breadcrumbs
codeql
/
java
/
ql
/
src
/
Performance
/
NewStringString.java
Copy path
File metadata and controls
10 lines (8 loc) · 294 Bytes
Raw
Copy raw file
Download raw file
Open symbols panel
Edit and raw actions
1
2
3
4
5
6
7
8
9
10
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
));
}
Back
|
FazBrowse Home
|
New Git URL