Modernize Switch Statements with JDK 21 Patterns
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
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:
- JDK 21 Pattern Matching: https://openjdk.org/jeps/441
- Switch Pattern Matching: https://docs.oracle.com/en/java/javase/21/language/pattern-matching.html
- 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
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- 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.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của ControlSystemStudio/phoebus
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
ControlSystemStudio/phoebus#3983 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Create CONTRIBUTING.mdĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ControlSystemStudio/phoebus#3979 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 80/100
ControlSystemStudio/phoebus#3962 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
PVA/SPVA: track SPVA version independently and move XDG keychain dir pva/<ver> -> spva/<n.n.n>Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
ControlSystemStudio/phoebus#3865 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Audio annunciator unable to use audio files which have a space in their pathCó thể đã có người làm @LordIdra đã nhận 1 ngày trước. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
ControlSystemStudio/phoebus#3992 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của ControlSystemStudio/phoebus
Issue tương tự
-
bug web-server
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
jooby-project/jooby#4035 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
L: javascript
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
dependabot/dependabot-core#16744 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
intake mcp-intake needs-human-review priority:high type:bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 62/100
Ikalus1988/MisakaNet#3987 · 3 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
quarkiverse/quarkus-google-cloud-services#1187 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 82/100
locationtech/jts#1250 ·