Skip to content

Commit

Permalink
apply spotless and clarify comments
Browse files Browse the repository at this point in the history
  • Loading branch information
LoiNguyenCS committed Dec 2, 2023
1 parent 97f9232 commit 4a181cb
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -178,9 +178,9 @@ public void updateFieldByType(String currentType, String correctType) {
String fieldName = elements.get(1);
if (fieldType.equals(currentType)) {
iterator.remove();
newFields.add(
UnsolvedSymbolVisitor.setInitialValueForVariableDeclaration(
correctType, staticKeyword + correctType + " " + fieldName));
newFields.add(
UnsolvedSymbolVisitor.setInitialValueForVariableDeclaration(
correctType, staticKeyword + correctType + " " + fieldName));
}
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1660,6 +1660,7 @@ public void updateClassSetWithQualifiedFieldSignature(String fieldExpr, boolean
"Need to check this field access expression with"
+ " isAnUnsolvedStaticFieldCalledByAQualifiedClassName before using this method");
}
// this is the synthetic type of the field
String fieldTypeClassName = toCapital(fieldParts.get(0));
String packageName = fieldParts.get(0);
// According to the above example, fieldName will be myField
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
package org.checkerframework.specimin;

import org.junit.Test;

import java.io.IOException;
import org.junit.Test;

/**
* This test checks that if Specimin will work if there is an unsolved, non-static field used by target methods
* This test checks that if Specimin will work if there is an unsolved, non-static field used by
* target methods
*/
public class UnsolvedNonStaticField {
@Test
Expand Down

0 comments on commit 4a181cb

Please sign in to comment.