mirror of
https://github.com/github/codeql.git
synced 2026-04-30 19:26:02 +02:00
Apply suggestions from code review
Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
@@ -25,7 +25,7 @@ class ThriftIface extends Interface {
|
||||
this.getFile() instanceof ThriftGeneratedFile
|
||||
}
|
||||
|
||||
/** Returns an implementation of a method of this interface. */
|
||||
/** Gets an implementation of a method of this interface. */
|
||||
Method getAnImplementingMethod() {
|
||||
result.getDeclaringType().(Class).getASupertype+() = this and
|
||||
result.overrides+(this.getAMethod()) and
|
||||
|
||||
@@ -6,7 +6,7 @@ import semmle.code.java.dataflow.FlowSources
|
||||
|
||||
private class AndroidWidgetSourceModels extends SourceModelCsv {
|
||||
override predicate row(string row) {
|
||||
row = ["android.widget;EditText;true;getText;;;ReturnValue;android-widget"]
|
||||
row = "android.widget;EditText;true;getText;;;ReturnValue;android-widget"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -18,6 +18,6 @@ private class DefaultAndroidWidgetSources extends RemoteFlowSource {
|
||||
|
||||
private class AndroidWidgetSummaryModels extends SummaryModelCsv {
|
||||
override predicate row(string row) {
|
||||
row = ["android.widget;EditText;true;getText;;;Argument[-1];ReturnValue;taint"]
|
||||
row = "android.widget;EditText;true;getText;;;Argument[-1];ReturnValue;taint"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -15,7 +15,7 @@ class StrutsAnnotation extends Annotation {
|
||||
class StrutsActionAnnotation extends StrutsAnnotation {
|
||||
StrutsActionAnnotation() { this.getType().hasName("Action") }
|
||||
|
||||
/** Returns a callable annotated with this annotation. */
|
||||
/** Gets a callable annotated with this annotation. */
|
||||
Callable getActionCallable() {
|
||||
result = this.getAnnotatedElement()
|
||||
or
|
||||
|
||||
Reference in New Issue
Block a user