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

Initialize one field per line in the generated code #1314

Merged
merged 1 commit into from
Jan 19, 2023

Conversation

aababilov
Copy link
Collaborator

The generated code may be analysed by engineers, so it should be readable.

Example of the new code.

      CompositeKey key = CompositeKey.builder()
          .setFromStopId(newEntity.fromStopId())
          .setToStopId(newEntity.toStopId())
          .setFromTripId(newEntity.fromTripId())
          .setToTripId(newEntity.toTripId())
          .setFromRouteId(newEntity.fromRouteId())
          .setToRouteId(newEntity.toRouteId())
          .build();

The generated code may be analysed by engineers, so it should be
readable.

Example of the new code.

```
      CompositeKey key = CompositeKey.builder()
          .setFromStopId(newEntity.fromStopId())
          .setToStopId(newEntity.toStopId())
          .setFromTripId(newEntity.fromTripId())
          .setToTripId(newEntity.toTripId())
          .setFromRouteId(newEntity.fromRouteId())
          .setToRouteId(newEntity.toRouteId())
          .build();
```
Copy link
Collaborator

@asvechnikov2 asvechnikov2 left a comment

Choose a reason for hiding this comment

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

Thanks!

@aababilov aababilov merged commit 352f94d into MobilityData:master Jan 19, 2023
KClough pushed a commit to JarvusInnovations/gtfs-validator that referenced this pull request Jan 24, 2023
The generated code may be analysed by engineers, so it should be
readable.

Example of the new code.

```
      CompositeKey key = CompositeKey.builder()
          .setFromStopId(newEntity.fromStopId())
          .setToStopId(newEntity.toStopId())
          .setFromTripId(newEntity.fromTripId())
          .setToTripId(newEntity.toTripId())
          .setFromRouteId(newEntity.fromRouteId())
          .setToRouteId(newEntity.toRouteId())
          .build();
```
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.

None yet

2 participants