From 4d076b27717bbd49c3b477612d27a935361ed6d3 Mon Sep 17 00:00:00 2001 From: Sungkeun Cho Date: Wed, 2 Dec 2020 06:49:38 -0800 Subject: [PATCH] [test] Fix class name in test Summary: In Java, public class name should be the same to file name. Reviewed By: ezgicicek Differential Revision: D25245194 fbshipit-source-id: 49fd16748 --- .../differential_interesting_paths_filter/current.exp | 3 +-- .../differential_interesting_paths_filter/introduced.exp | 3 +-- .../src/com/example/DiffClass3.java.current | 4 ++-- .../src/com/example/DiffClassUnchanged.java.unchanged | 5 ----- 4 files changed, 4 insertions(+), 11 deletions(-) diff --git a/infer/tests/build_systems/differential_interesting_paths_filter/current.exp b/infer/tests/build_systems/differential_interesting_paths_filter/current.exp index 9047c8c61..8b72652b1 100644 --- a/infer/tests/build_systems/differential_interesting_paths_filter/current.exp +++ b/infer/tests/build_systems/differential_interesting_paths_filter/current.exp @@ -1,5 +1,4 @@ NULL_DEREFERENCE, no_bucket, src/com/example/DiffClass1.java, com.example.DiffClass1.triggerNpe():int, 1 RESOURCE_LEAK, no_bucket, src/com/example/DiffClass2.java, com.example.DiffClass2.openResource():void, 5 -NULL_DEREFERENCE, no_bucket, src/com/example/DiffClass3.java, com.example.DiffClassThree.doStuff3():int, 1 +NULL_DEREFERENCE, no_bucket, src/com/example/DiffClass3.java, com.example.DiffClass3.doStuff3():int, 1 NULL_DEREFERENCE, no_bucket, src/com/example/DiffClassUnchanged.java, com.example.DiffClassUnchanged.doWrongStuff():int, 1 -NULL_DEREFERENCE, no_bucket, src/com/example/DiffClassUnchanged.java, com.example.DiffClassUnchanged.tellMeTheLength():int, 1 diff --git a/infer/tests/build_systems/differential_interesting_paths_filter/introduced.exp b/infer/tests/build_systems/differential_interesting_paths_filter/introduced.exp index 19c8bc2f3..f105176ef 100644 --- a/infer/tests/build_systems/differential_interesting_paths_filter/introduced.exp +++ b/infer/tests/build_systems/differential_interesting_paths_filter/introduced.exp @@ -1,2 +1 @@ -NULL_DEREFERENCE, no_bucket, src/com/example/DiffClass3.java, com.example.DiffClassThree.doStuff3():int, 1 -NULL_DEREFERENCE, no_bucket, src/com/example/DiffClassUnchanged.java, com.example.DiffClassUnchanged.tellMeTheLength():int, 1 +NULL_DEREFERENCE, no_bucket, src/com/example/DiffClass3.java, com.example.DiffClass3.doStuff3():int, 1 diff --git a/infer/tests/build_systems/differential_interesting_paths_filter/src/com/example/DiffClass3.java.current b/infer/tests/build_systems/differential_interesting_paths_filter/src/com/example/DiffClass3.java.current index 1c74abf52..083e42b51 100644 --- a/infer/tests/build_systems/differential_interesting_paths_filter/src/com/example/DiffClass3.java.current +++ b/infer/tests/build_systems/differential_interesting_paths_filter/src/com/example/DiffClass3.java.current @@ -7,13 +7,13 @@ package com.example; -class DiffClassThree { +class DiffClass3 { public static String createString3() { return null; } private int doStuff3() { - return DiffClassThree.createString3().length(); + return DiffClass3.createString3().length(); } } diff --git a/infer/tests/build_systems/differential_interesting_paths_filter/src/com/example/DiffClassUnchanged.java.unchanged b/infer/tests/build_systems/differential_interesting_paths_filter/src/com/example/DiffClassUnchanged.java.unchanged index 815e0efc9..521527866 100644 --- a/infer/tests/build_systems/differential_interesting_paths_filter/src/com/example/DiffClassUnchanged.java.unchanged +++ b/infer/tests/build_systems/differential_interesting_paths_filter/src/com/example/DiffClassUnchanged.java.unchanged @@ -8,15 +8,10 @@ package com.example; class DiffClassUnchanged { - private int tellMeTheLength() { - return DiffClassThree.createString3().length(); - } - private String createNullString() { return null; } - private int doWrongStuff() { return this.createNullString().length(); }