Skip to content

refactor!: move classes to new packages - #154

Open
szysas wants to merge 3 commits into
next-1from
next-2
Open

szysas wants to merge 3 commits into
next-1from
next-2

Conversation

@szysas

@szysas szysas commented Sep 24, 2026

Copy link
Copy Markdown
Collaborator

Reorganize classes across core, tcp, mbedtls, netty, and metrics modules into domain-focused packages without renaming any classes:

  • opencoap.core: Core protocol models, header options, codes, and base service interfaces
  • opencoap.codec: Serialization, deserialization, and packet framing
  • opencoap.endpoint: Client, server, and endpoint orchestration
  • opencoap.endpoint.pipeline: Pipeline filters, message correlation, deduplication, and blockwise transfer
  • opencoap.filter: Reusable message filters for congestion control, etags, metrics, payload limits, and logging
  • opencoap.routing: Resource routing and dispatching
  • opencoap.observe: Observation storage, relation tracking, and notification handling
  • opencoap.transport: Transport abstractions, socket implementations, netty, and TLS/DTLS transports
  • opencoap.linkformat: CoRE Link Format parsing, building, and registration management
  • opencoap.util: Common asynchronous, concurrency, and validation utilities

Update package declarations, adjust visibility for package-private encapsulation where appropriate, and update imports across all modules.

@szysas
szysas added this pull request to stack #155 September 24, 2026 08:08
@szysas
szysas removed this pull request from stack #155 September 24, 2026 10:58
@szysas
szysas added this pull request to stack #159 September 24, 2026 10:59
@codecov

codecov Bot commented Sep 24, 2026 •

Copy link
Copy Markdown

Codecov Report

❌ Patch coverage is 84.61538% with 2 lines in your changes missing coverage. Please review.
✅ Project coverage is 93.64%. Comparing base (147c8ef) to head (42d3b7a).

Files with missing lines Patch % Lines
...core/src/main/java/opencoap/codec/PacketUtils.java 0.00% 1 Missing ⚠️
...main/java/opencoap/endpoint/MessageIdSupplier.java 50.00% 1 Missing ⚠️
Additional details and impacted files
@@             Coverage Diff              @@
##             next-1     #154      +/-   ##
============================================
- Coverage     93.66%   93.64%   -0.03%     
- Complexity     1842     1844       +2     
============================================
  Files           108      108              
  Lines          4043     4045       +2     
  Branches        538      538              
============================================
+ Hits           3787     3788       +1     
- Misses          139      140       +1     
  Partials        117      117              

☔ View full report in Codecov by Harness.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

Mechanical package prefix rename from com.mbed.coap.* and org.opencoap.coap.* to opencoap.* across all modules without moving classes between subpackages.
Reorganize classes across core, tcp, mbedtls, netty, and metrics modules into domain-focused packages without renaming any classes:

- opencoap.core: Core protocol models, header options, codes, and base service interfaces
- opencoap.codec: Serialization, deserialization, and packet framing
- opencoap.endpoint: Client, server, and endpoint orchestration
- opencoap.endpoint.pipeline: Pipeline filters, message correlation, deduplication, and blockwise transfer
- opencoap.filter: Reusable message filters for congestion control, etags, metrics, payload limits, and logging
- opencoap.routing: Resource routing and dispatching
- opencoap.observe: Observation storage, relation tracking, and notification handling
- opencoap.transport: Transport abstractions, socket implementations, netty, and TLS/DTLS transports
- opencoap.linkformat: CoRE Link Format parsing, building, and registration management
- opencoap.util: Common asynchronous, concurrency, and validation utilities

Update package declarations, adjust visibility for package-private encapsulation where appropriate, and update imports across all modules.
@szysas
szysas marked this pull request as ready for review September 24, 2026 11:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant