[Java] Dummy NPEs in DefaultAllocationManagerOption
- Ngôn ngữ chính
- Java
- Star
- 94
- Fork
- 152
- Merge trung bình
- 3 ngày 16 giờ
- Pull request đã merge (30 ngày)
- 11
Mô tả
Looking at DefaultAllocationManagerOption [1], I see that we could prevent dummy NPEs when trying to convert an often not-set environment option into enums.
In my case, it was a bit painful to have this error, even if properly caught, because it was polluting debug when looking for unexpected NPEs. This was raising false positives.
I was wondering if you were open to a pull request to change this little inconvenience?
[1]
**Reporter**: [Olivier Peyrusse](https://issues.apache.org/jira/browse/ARROW-13697)
**Note**: *This issue was originally created as [ARROW-13697](https://issues.apache.org/jira/browse/ARROW-13697). Please see the [migration documentation](https://github.com/apache/arrow/issues/14542) for further details.*
Hướng dẫn đóng góp
Hướng nghiên cứu
Bắt đầu bằng cách đọc java/memory/memory-core/src/main/java/org/apache/arrow/memory/DefaultAllocationManagerOption.java quanh các dòng 64-82, tập trung vào việc chuyển đổi các tùy chọn môi trường chưa được thiết lập thành enums. Xác nhận hành vi hiện tại đối với một tùy chọn chưa được thiết lập và kiểm tra rằng cách xử lý kết quả không còn tạo ra các NullPointerExceptions giả nữa, đồng thời vẫn giữ nguyên hành vi tùy chọn dự kiến.
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
- backend
- Loại issue
- Lỗi
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 42/100