Skip to content

#1636 - Remove deprecated APIs for 3.0.0#1637

Merged
reckart merged 3 commits into
mainfrom
removal/1636-Remove-deprecated-APIs-for-3.0.0
Jun 14, 2026
Merged

#1636 - Remove deprecated APIs for 3.0.0#1637
reckart merged 3 commits into
mainfrom
removal/1636-Remove-deprecated-APIs-for-3.0.0

Conversation

@reckart

@reckart reckart commented Jun 14, 2026

Copy link
Copy Markdown
Member

What's in the PR

  • Remove deprecated SerializedCasReader and SerializedCasWriter (io-bincas), superseded by BinaryCasReader / BinaryCasWriter
  • Migrate serialized-format test coverage to BinaryCasWriter (format S+ for embedded type system, S for separate type system)
  • Fix stale SerializedCasReader javadoc reference in BinaryCasWriter
  • Remove deprecated LineBasedSentenceSegmenter and WhitespaceSegmenter (tokit), superseded by RegexSegmenter
  • Remove the dedicated tests for the removed classes (SerializedCasWriterReaderTest, LineBasedSentenceSegmenterTest, WhitespaceSegmenterTest)
  • Remove deprecated ResourceCollectionReaderBase.PARAM_PATH (use PARAM_SOURCE_LOCATION)
  • Remove deprecated ResourceMetadata.META_ENCODING (use META_MODEL_ENCODING)
  • Remove deprecated ResourceUtils.resolveCompressedInputStream (use CompressionUtils.getInputStream)
  • Remove deprecated SegmenterBase.createToken(JCas, int, int, int) overload (use createToken(JCas, int, int))
  • Remove deprecated TfIdfWriter.PARAM_OUTPUT_PATH (use PARAM_TARGET_LOCATION)
  • Remove deprecated AssertAnnotations.assertMorpheme (use assertMorph) and assertSemanticPredicates (use assertSemPred), plus now-unused imports
  • Remove deprecated DataPackage and DatasetLoader (api-datasets), superseded by DatasetFactory; drop the disabled DatasetLoaderTest
  • Remove deprecated text normalizer framework (textnormalizer): Normalizer_ImplBase, ReplacementFileNormalizer, NormalizerFactory, internal AnnotationComparator, and their tests
  • Move dkpro-core-tokit-asl and dkpro-core-jazzy-asl to test scope in textnormalizer (only used by tests after the removals)
  • Move commons-io to test scope in io-bincas (only used by tests after removing SerializedCasReader/Writer)

How to test manually

  • No specific test procedure

Automatic testing

  • PR includes unit tests

Documentation

  • PR updates documentation

reckart added 2 commits June 14, 2026 15:18
- Remove deprecated SerializedCasReader and SerializedCasWriter (io-bincas), superseded by BinaryCasReader / BinaryCasWriter
- Migrate serialized-format test coverage to BinaryCasWriter (format S+ for embedded type system, S for separate type system)
- Fix stale {@link SerializedCasReader} javadoc reference in BinaryCasWriter
- Remove deprecated LineBasedSentenceSegmenter and WhitespaceSegmenter (tokit), superseded by RegexSegmenter
- Remove the dedicated tests for the removed classes (SerializedCasWriterReaderTest, LineBasedSentenceSegmenterTest, WhitespaceSegmenterTest)
- Remove deprecated ResourceCollectionReaderBase.PARAM_PATH (use PARAM_SOURCE_LOCATION)
- Remove deprecated ResourceMetadata.META_ENCODING (use META_MODEL_ENCODING)
- Remove deprecated ResourceUtils.resolveCompressedInputStream (use CompressionUtils.getInputStream)
- Remove deprecated SegmenterBase.createToken(JCas, int, int, int) overload (use createToken(JCas, int, int))
- Remove deprecated TfIdfWriter.PARAM_OUTPUT_PATH (use PARAM_TARGET_LOCATION)
- Remove deprecated AssertAnnotations.assertMorpheme (use assertMorph) and assertSemanticPredicates (use assertSemPred), plus now-unused imports
@reckart reckart self-assigned this Jun 14, 2026
@reckart reckart changed the title Removal/1636 remove deprecated ap is for 3.0.0 #1636 - Remove deprecated APIs for 3.0.0 Jun 14, 2026
@reckart reckart added this to Kanban Jun 14, 2026
@reckart reckart added this to the 3.0.0 milestone Jun 14, 2026
@github-project-automation github-project-automation Bot moved this to In progress in Kanban Jun 14, 2026
- Remove deprecated DataPackage and DatasetLoader (api-datasets), superseded by DatasetFactory; drop the disabled DatasetLoaderTest
- Remove deprecated text normalizer framework (textnormalizer): Normalizer_ImplBase, ReplacementFileNormalizer, NormalizerFactory, internal AnnotationComparator, and their tests
- Move dkpro-core-tokit-asl and dkpro-core-jazzy-asl to test scope in textnormalizer (only used by tests after the removals)
- Move commons-io to test scope in io-bincas (only used by tests after removing SerializedCasReader/Writer)
@reckart reckart merged commit 7ea865b into main Jun 14, 2026
5 checks passed
@reckart reckart deleted the removal/1636-Remove-deprecated-APIs-for-3.0.0 branch June 14, 2026 19:12
@github-project-automation github-project-automation Bot moved this from In progress to Done in Kanban Jun 14, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

1 participant