Skip to content

Conversation

@mbien
Copy link
Member

@mbien mbien commented Oct 20, 2025

Switched to non-deprecated utilities API.

wip

mbien added 8 commits October 20, 2025 06:08
avoid using deprecated NB API to reduce warning noise

adds getLineStart2 and deprecates getLineStart

 - getLineStart didn't declare BadLocationException to be thrown
   and did not make any range checks
 - getRowStart declared BadLocationException but called getLineStart
   which can't throw the Exception
 - getLineStart2 checks the range and declares BadLocationException,
   just like the getLineEnd sibling.
 - this makes the API symmetrical and allows the catch blocks (which
   had to be already implemented) to function
…irst/Last]NonWhitespace

also deprecate Utilities::getRowFirstNonWhite for symmetry
@mbien mbien added this to the NB29 milestone Oct 20, 2025
@mbien mbien added Code cleanup ci:all-tests [ci] enable all tests labels Oct 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

ci:all-tests [ci] enable all tests Code cleanup

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant