Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

Incorrect plural field and accessor method names

Đang mở
#32 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
30/100
Loại issue
Lỗi
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
build-system, tooling

Hướng nghiên cứu

Start with pom.xml lines 178-226 and inspect the cxf-xjc-plugin configuration and generated Java classes named in the issue. Compare their plural names with the SIRI XSDs and determine whether the forms are introduced during code generation. Done means identifying the source of the names and either fixing that generation path or documenting why the generated accessors are harmless.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

When working with SIRI data, @leonardehrenfried and I both noticed that some fields and accessor methods have strange plural forms. For example:

  • uk.org.siri.siri20.AffectsScopeStructure.VehicleJourneys#affectedVehicleJourneies
  • uk.org.siri.siri20.AffectsScopeStructure.VehicleJourneys#getAffectedVehicleJourneies
  • uk.org.siri.siri13.AffectedVehicleJourneyStructure#vehicleJourneyReves
  • uk.org.siri.siri13.AffectedVehicleJourneyStructure#getVehicleJourneyReves

These appear to be over-generalizations of irregular English plurals (here, leaf/wolf/elf). They could be introduced at the data model (UML) stage, the XSD downstream from UML, or the Java code generation from the XSD. Depending on where they are introduced, they could lead to anything from failed deserialization to harmless but odd looking Java code.

We searched through the SIRI XSD via https://github.com/SIRI-CEN/SIRI and did not discover any of these plural forms, so our suspicion is that they're introduced in the code generation stage. https://github.com/entur/siri-java-model/blob/master/pom.xml#L178-L226 shows use of cxf-xjc-plugin. This appears to be a related discussion on StackOverflow: https://stackoverflow.com/q/4502229/778449
https://stackoverflow.com/a/13359717/778449

If our understanding is correct, this is not expected to create any errors in the short term. I am creating this issue because people may reuse this siri-java-model within or outside Entur, and may be concerned and invest time the way we did into verifying whether or not this will cause problems. If the plurals can be fixed it may save confusion in the future.

Ngôn ngữ chính
XSLT
Star
10
Fork
6
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của entur/siri-java-model

Tất cả issue của entur/siri-java-model

Issue tương tự

Thêm issue về Build System

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.