MobilityData / gtfs-validator

Canonical GTFS Validator project for schedule (static) files.
https://gtfs-validator.mobilitydata.org/
Apache License 2.0
288 stars 101 forks source link

Technical debt: Simplify some classes parameterization #1865

Open jcpitre opened 1 month ago

jcpitre commented 1 month ago

Describe the problem

In https://github.com/MobilityData/gtfs-validator/pull/1810 we modified some classes to require 2 class parameters, e.g.

public abstract class GtfsEntityContainer<T extends GtfsEntity, D extends GtfsFileDescriptor> {

I believe that the D extends GtfsFileDescriptor is not necessary.

Proposed solution

Removing the second class parameter would simplify the code.

Alternatives you've considered

No response

Additional context

No response