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

Modernize Switch Statements with JDK 21 Patterns

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

Maintainer thường phản hồi trong vòng 1 ngày

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
25/100
Loại issue
Tái cấu trúc
Độ rõ ràng
Cần làm rõ
Mức độ hoạt động
Đình trệ
Công nghệ
java
Lĩnh vực
tooling

Hướng nghiên cứu

Start by identifying legacy switch statements throughout the Phoebus codebase and read the JDK 21 pattern-matching resources linked in the issue. Convert suitable switches and instanceof checks, then add or run tests to verify behavior remains unchanged and exhaustiveness checking is used where appropriate.

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

Mô tả

Refactor legacy switch statements throughout Phoebus codebase to use JDK 21 modern switch expressions and pattern matching. Improve code readability and take advantage of exhaustiveness checking.

  • Identify switch statements that can benefit from JDK 21 pattern matching
  • Convert traditional switch statements to switch expressions where appropriate
  • Use pattern matching for instanceof checks in switch cases
  • Ensure exhaustiveness checking is leveraged
  • Add tests to verify behavior remains unchanged

Resources:

Ngôn ngữ chính
Java
Star
130
Fork
132
Merge trung bình
2 ngày 11 giờ
Pull request đã merge (30 ngày)
23

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

  • Không có Dockerfile hay tệp Docker Compose
  • Có mẫu pull request
  • Không có hướng dẫn đóng góp

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 ControlSystemStudio/phoebus

Tất cả issue của ControlSystemStudio/phoebus

Issue tương tự

Thêm issue về Java

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.