Skip to content

Commit

Permalink
Fix typos (#554)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ao-senXiong authored Aug 17, 2023
1 parent 02e2f45 commit 511549f
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -168,7 +168,7 @@ public TransferResult<V, S> visitAssignment(AssignmentNode n, TransferInput<V, S
}

/**
* If an invariant field is initialized and has the invariant annotation, than it has at least
* If an invariant field is initialized and has the invariant annotation, then it has at least
* the invariant annotation. Note that only fields of the 'this' receiver are tracked for
* initialization.
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,10 @@
*
* @checker_framework.manual #optional-checker Optional Checker
*/
// TODO: For a call to ofNullable, if the argument has type @NonNull, make the return type have type
// @Present. Make Optional Checker a subchecker of the Nullness Checker.
// TODO: For a call to `Optional#ofNullable`, if the argument has type @NonNull, make the return
// type have type @Present. Make Optional Checker a subchecker of the Nullness Checker.
@RelevantJavaTypes(Optional.class)
public class OptionalChecker extends BaseTypeChecker {}
public class OptionalChecker extends BaseTypeChecker {
/** Default constructor for OptionalChecker. */
public OptionalChecker() {}
}
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public class FieldAccessNode extends Node {
* Creates a new FieldAccessNode.
*
* @param tree the tree from which to create a FieldAccessNode
* @param receiver the receiver for the resuling FieldAccessNode
* @param receiver the receiver for the resulting FieldAccessNode
*/
public FieldAccessNode(Tree tree, Node receiver) {
super(TreeUtils.typeOf(tree));
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -589,7 +589,7 @@ protected TransferResult<V, S> createTransferResult(@Nullable V value, TransferI
*
* @param value the value; possibly null
* @param in the TransferResult to copy
* @return the input informatio
* @return the input information
*/
@SideEffectFree
protected TransferResult<V, S> recreateTransferResult(
Expand Down

0 comments on commit 511549f

Please sign in to comment.