Skip to content

Conversation

@optionsome
Copy link
Member

Summary

Updates prettier-java version to 2.7.7 and re-formats code based on updated prettier formatting.

This is currently built on top of #7138. This pr is currently open to demonstrate the changes. If we decide we want to update prettier, we should wait until #7138 is merged and then re-format the code with the latest upstream version and merge the changes in quickly before there are conflicts.

Issue

No issue

Unit tests

No functional updates

Documentation

No updates

Changelog

Skipped

@optionsome optionsome added this to the 2.9 (next release) milestone Jan 2, 2026
@optionsome optionsome requested a review from a team as a code owner January 2, 2026 13:26
@optionsome optionsome added !Technical Debt Improve code quality, no functional changes. +Skip Changelog This is not a relevant change for a product owner since last release. labels Jan 2, 2026
@optionsome
Copy link
Member Author

jhipster/prettier-java#780 caused some formatting changes that we are not happy with as it moved some comments to be trailing comments when previously they were before on own line inside a ternary operation. However, I only had to fix those kinds of problems in three places and when it happens, checkstyle will fail.

@codecov
Copy link

codecov bot commented Jan 2, 2026

Codecov Report

❌ Patch coverage is 65.87079% with 243 lines in your changes missing coverage. Please review.
✅ Project coverage is 72.18%. Comparing base (2540a97) to head (1ff2a74).

Files with missing lines Patch % Lines
...pplanner/apis/gtfs/datafetchers/QueryTypeImpl.java 0.00% 31 Missing ⚠️
...pentripplanner/apis/gtfs/DefaultValueInjector.java 30.95% 29 Missing ⚠️
...ntripplanner/apis/gtfs/datafetchers/AlertImpl.java 0.00% 12 Missing ⚠️
...nner/inspector/vector/edge/EdgePropertyMapper.java 0.00% 11 Missing ⚠️
.../inspector/vector/vertex/VertexPropertyMapper.java 0.00% 8 Missing ⚠️
...algorithm/mapping/RaptorPathToItineraryMapper.java 0.00% 8 Missing ⚠️
...t/fares/service/gtfs/v1/custom/HSLFareService.java 50.00% 5 Missing and 1 partial ⚠️
...ipplanner/ext/reportapi/model/TransfersReport.java 0.00% 6 Missing ⚠️
...entripplanner/apis/transmodel/support/GqlUtil.java 0.00% 6 Missing ⚠️
...planner/graph_builder/module/TripPatternNamer.java 0.00% 6 Missing ⚠️
... and 57 more
Additional details and impacted files
@@             Coverage Diff             @@
##             dev-2.x    #7164    +/-   ##
===========================================
  Coverage      72.17%   72.18%            
- Complexity     20877    20923    +46     
===========================================
  Files           2273     2273            
  Lines          84437    84678   +241     
  Branches        8424     8425     +1     
===========================================
+ Hits           60942    61123   +181     
- Misses         20520    20578    +58     
- Partials        2975     2977     +2     

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

🚀 New features to boost your workflow:
  • 📦 JS Bundle Analysis: Save yourself from yourself by tracking and limiting bundle sizes in JS merges.

Comment on lines -125 to +127
"the start location (`from`) to the first entry in the `via` locations list and the " +
"last is from the last entry in the `via` locations list to the end location (`to`). " +
"Note that the list must have length of exactly one greater than the `via` field."
"the start location (`from`) to the first entry in the `via` locations list and the " +
"last is from the last entry in the `via` locations list to the end location (`to`). " +
"Note that the list must have length of exactly one greater than the `via` field."
Copy link
Member Author

Choose a reason for hiding this comment

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

There are a lot of these kinds of changes which can lead to some lines going slightly over the line width limit (by 1-2 characters) as we have previously manually made sure they fit in the line width and now prettier moves them to the right by a couple of characters.

Comment on lines +160 to 166
// next iteration (looking at the boarding of the current transit leg). The transfer with the
// earliest-arrival-time BEFORE the transit-leg is used to prune the transfers AFTER the
// transit-leg. The transfers are sorted on arrival-time in descending order, so the
// earliest-arrival-time is the last element of the list of transfers.
int earliestDepartureTimeFromLeg = i == 0
? accessArrivalTime
// The transfer with the earliest-arrival-time BEFORE the transit-leg is used to
// prune the transfers AFTER the transit-leg. The transfers are sorted on
// arrival-time in descending order, so the earliest-arrival-time is the
// last element of the list of transfers.
: last(possibleTransfers.get(i - 1)).to().time();
Copy link
Member Author

Choose a reason for hiding this comment

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

This is the type of a ternary operation change mentioned in #7164 (comment) that I have manually fixed.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

+Skip Changelog This is not a relevant change for a product owner since last release. !Technical Debt Improve code quality, no functional changes.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant