Skip to content

Commit e7bc2ca

Browse files
committed
Java: Remove some redundant string concatenations
1 parent 13ddc4a commit e7bc2ca

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

java/ql/src/Likely Bugs/Cloning/MissingCallToSuperClone.ql

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,5 +20,5 @@ where
2020
c.fromSource() and
2121
exists(sc.getBody()) and
2222
not exists(CloneMethod ssc | sc.callsSuper(ssc))
23-
select sc, "This clone method does not call super.clone(), but is " + "overridden and called $@.",
24-
c, "in a subclass"
23+
select sc, "This clone method does not call super.clone(), but is overridden and called $@.", c,
24+
"in a subclass"

java/ql/src/Likely Bugs/Likely Typos/ConstructorTypo.ql

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,4 @@ from Method m
1717
where
1818
m.hasName(m.getDeclaringType().getName()) and
1919
m.fromSource()
20-
select m, "This method has the same name as its declaring class." + " Should it be a constructor?"
20+
select m, "This method has the same name as its declaring class. Should it be a constructor?"

0 commit comments

Comments
 (0)