Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Create OTP utils module for basic utility features #6209

Merged
merged 6 commits into from
Nov 4, 2024

Conversation

t2gran
Copy link
Member

@t2gran t2gran commented Oct 29, 2024

Summary

This PR create another maven module and move "true" utilities into it. The new Maven module make is possible to split the application in other modules, like Raptor, OTP domain, street and so on.

The utilities should have no dependencies to other parts of OTP and no dependencies to other 3rd party libraries - except the @nullable annotation lib.

Issue

Part of #6155

Unit tests

This is a pure restructuring of the code. One test is removed, since the method tested was unused, and removed.

Documentation

No do is changed.

Changelog

This can skip the change log.

Bumping the serialization version id

Unsure if changing the package name for the utility classes have any thing to say, but some of the utility classes is serialized, so we bump the version id to be safe.

@t2gran t2gran added Technical Debt bump serialization id Add this label if you want the serialization id automatically bumped after merging the PR Skip Changelog labels Oct 29, 2024
@t2gran t2gran added this to the 2.7 (next release) milestone Oct 29, 2024
@t2gran t2gran requested a review from a team as a code owner October 29, 2024 23:56
Copy link

codecov bot commented Oct 30, 2024

Codecov Report

Attention: Patch coverage is 88.88889% with 1 line in your changes missing coverage. Please review.

Project coverage is 69.92%. Comparing base (e4d92eb) to head (1831172).
Report is 72 commits behind head on dev-2.x.

Files with missing lines Patch % Lines
...entripplanner/framework/collection/TroveUtils.java 85.71% 1 Missing ⚠️
Additional details and impacted files
@@              Coverage Diff              @@
##             dev-2.x    #6209      +/-   ##
=============================================
- Coverage      69.94%   69.92%   -0.02%     
+ Complexity     17743    17729      -14     
=============================================
  Files           1998     2000       +2     
  Lines          75464    75487      +23     
  Branches        7723     7727       +4     
=============================================
+ Hits           52784    52787       +3     
- Misses         20009    20015       +6     
- Partials        2671     2685      +14     

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

import java.util.HashSet;
import java.util.Set;

public class ToveUtils {
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
public class ToveUtils {
public class TroveUtils {

Copy link
Member

@leonardehrenfried leonardehrenfried left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ToveUtils should be TroveUtils.

The coverage goes down with this because the reports are not aggregated but I'm hoping to fix it with the following PR: #6220

eibakke
eibakke previously approved these changes Nov 4, 2024
@t2gran t2gran merged commit d5bb4ab into opentripplanner:dev-2.x Nov 4, 2024
5 checks passed
@t2gran t2gran deleted the otp2_framework branch November 4, 2024 16:58
t2gran pushed a commit that referenced this pull request Nov 4, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bump serialization id Add this label if you want the serialization id automatically bumped after merging the PR Skip Changelog Technical Debt
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants