Skip to content

Commit 2bba202

Browse files
authored
Merge pull request #844 from CAN4red/master
Test Assets Cleanup: refactor test classes
2 parents f65d15d + 868dd58 commit 2bba202

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

test/ast_framework/LottieImageAsset.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public String getFileName() {
6060
return bitmap;
6161
}
6262

63-
/**
64-
* TO-FIX
65-
*/
6663
public void setBitmap(@Nullable Bitmap bitmap) {
64+
if (bitmap == null) {
65+
return;
66+
}
6767
this.bitmap = bitmap;
6868
}
6969

test/ast_framework/MethodUseOtherMethodExample.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,7 @@
55
*/
66
class MethodUseOtherMethod {
77
private int connectingField = 0;
8+
@SuppressWarnings("unused")
89
private int redundantField = 0;
910

1011
public int useOnlyMethods1(int x) {

test/ast_framework/ScopeTest.java

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ public class ScopeTest {
66
/**
77
* [Local variable, Local variable]
88
*/
9+
@SuppressWarnings("unused")
910
void plain_method() {
1011
int x = 0;
1112
int y = 0;
@@ -24,6 +25,7 @@ void lambda_in_assert() {
2425
* [Local variable, Block statement]
2526
* |---[Local variable]
2627
*/
28+
@SuppressWarnings("unused")
2729
void nested_blocks() {
2830
int x = 0;
2931

0 commit comments

Comments
 (0)