redhat-developer / redhat-developer/vscode-java
On Nonnull Annotation Setting
Chưa có ai nhận issue này.
- Ngôn ngữ chính
- TypeScript
- Star
- 2.3k
- Fork
- 546
- Merge trung bình
- 20 giờ 1 phút
- Pull request đã merge (30 ngày)
- 11
Mô tả
I found annotation based nonnull analysis was added from version 1.11.0. The README says there are two configurations java.compile.nullAnalysis.nonnull and java.compile.nullAnalysis.nullable in .vscode/settings.json .
When I read https://github.com/redhat-developer/vscode-java/issues/1693 I also found we can set org.eclipse.jdt.core.compiler.annotation.nonnull and etc in the setting file specified by java.settings.url.
If I set both of them, which one will be used?
In addition, if I set org.eclipse.jdt.core.compiler.annotation.nonnullbydefault=org.eclipse.jdt.annotation.NonNullByDefault in the the file of java.settings.url, I got expected null check behaviour. Is there any equivalent direct setting in .vscode/settings.json ?
Environment
- Operating System: Ubuntu 22.04
- JDK version: OpenJDK 64-Bit Server VM (build 17.0.4+8-Ubuntu-122.04, mixed mode, sharing)
- Visual Studio Code version: 1.73.0
- Java extension version: 1.12.0
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.
Hướng nghiên cứu
Bắt đầu với các thiết lập phân tích null trong README và so sánh chúng với các thuộc tính được cung cấp thông qua tệp được chỉ định bởi java.settings.url. Xác định cấu hình nào được ưu tiên và liệu org.eclipse.jdt.core.compiler.annotation.nonnullbydefault có tương đương trực tiếp trong .vscode/settings.json hay không; được xem là hoàn thành khi cả hai câu trả lời đã được ghi lại hoặc thiết lập được yêu cầu được hỗ trợ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- java
- Lĩnh vực
- developer-experience
- Loại issue
- Tính năng
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Cần làm rõ
- Mức phù hợp với người mới
- 35/100