mirror of
https://github.com/github/codeql.git
synced 2026-04-27 17:55:19 +02:00
Java: Remove some redundant string concatenations
This commit is contained in:
@@ -20,5 +20,5 @@ where
|
||||
c.fromSource() and
|
||||
exists(sc.getBody()) and
|
||||
not exists(CloneMethod ssc | sc.callsSuper(ssc))
|
||||
select sc, "This clone method does not call super.clone(), but is " + "overridden and called $@.",
|
||||
c, "in a subclass"
|
||||
select sc, "This clone method does not call super.clone(), but is overridden and called $@.", c,
|
||||
"in a subclass"
|
||||
|
||||
@@ -17,4 +17,4 @@ from Method m
|
||||
where
|
||||
m.hasName(m.getDeclaringType().getName()) and
|
||||
m.fromSource()
|
||||
select m, "This method has the same name as its declaring class." + " Should it be a constructor?"
|
||||
select m, "This method has the same name as its declaring class. Should it be a constructor?"
|
||||
|
||||
Reference in New Issue
Block a user