Apply suggestions from code review

Co-authored-by: Anders Schack-Mulligen <aschackmull@users.noreply.github.com>
This commit is contained in:
Tony Torralba
2022-01-20 13:44:10 +01:00
committed by GitHub
parent 6096080156
commit 62f847a82e
2 changed files with 2 additions and 2 deletions

View File

@@ -46,7 +46,7 @@ class OnActivityResultIncomingIntent extends DataFlow::Node {
.getDeclaringType()
.hasQualifiedName(["android.app", "android.support.v4.app", "androidx.fragment.app"],
"FragmentTransaction") and
any(Argument arg | arg = ma.getAnArgument()).getType() = startingType
ma.getAnArgument().getType() = startingType
or
ma.getMethod().hasName("show") and
ma.getMethod()

View File

@@ -3,7 +3,7 @@ import semmle.code.java.dataflow.FlowSources
import TestUtilities.InlineFlowTest
class SourceValueFlowConf extends DefaultValueFlowConf {
override predicate isSource(DataFlow::Node sink) { sink instanceof RemoteFlowSource }
override predicate isSource(DataFlow::Node src) { src instanceof RemoteFlowSource }
}
class SourceInlineFlowTest extends InlineFlowTest {