Apply suggestions from code review

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
Tony Torralba
2022-02-02 15:44:26 +01:00
committed by GitHub
parent 4f4f531dfc
commit 54e8ea56e8
3 changed files with 4 additions and 4 deletions

View File

@@ -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

View File

@@ -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"
}
}

View File

@@ -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