[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
master
Sungkeun Cho 4 years ago committed by Facebook GitHub Bot
parent 0343f5c7d9
commit 4d076b2771

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

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

@ -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();
}
}

@ -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();
}

Loading…
Cancel
Save