Summary: Reports will now be issued for the class loads of the methods specified by the option `--class-loads-roots`. Reviewed By: jvillard Differential Revision: D10466492 fbshipit-source-id: 91456d723master
parent
497720386e
commit
ea7b185b6b
@ -0,0 +1,24 @@
|
||||
/*
|
||||
* Copyright (c) 2018-present, Facebook, Inc.
|
||||
*
|
||||
* This source code is licensed under the MIT license found in the
|
||||
* LICENSE file in the root directory of this source tree.
|
||||
*/
|
||||
|
||||
class Basic {
|
||||
void foo_report(Other o) {
|
||||
o.bar();
|
||||
}
|
||||
|
||||
void baz_no_report(Another a) {
|
||||
a.baz();
|
||||
}
|
||||
}
|
||||
|
||||
class Other {
|
||||
void bar() {}
|
||||
}
|
||||
|
||||
class Another {
|
||||
void baz() {}
|
||||
}
|
@ -0,0 +1,12 @@
|
||||
# Copyright (c) 2018-present, Facebook, Inc.
|
||||
#
|
||||
# This source code is licensed under the MIT license found in the
|
||||
# LICENSE file in the root directory of this source tree.
|
||||
|
||||
TESTS_DIR = ../../..
|
||||
|
||||
INFER_OPTIONS = --class-loads-only --class-loads-roots "Basic.foo_report" --debug-exceptions
|
||||
INFERPRINT_OPTIONS = --issues-tests
|
||||
SOURCES = $(wildcard *.java)
|
||||
|
||||
include $(TESTS_DIR)/javac.make
|
@ -0,0 +1 @@
|
||||
codetoanalyze/java/classloads/Basic.java, Basic.foo_report(Other):void, 1, CLASS_LOAD, no_bucket, WARNING, [Other]
|
Loading…
Reference in new issue