jenkinsci / gitlab-plugin

A Jenkins plugin for interfacing with GitLab
https://plugins.jenkins.io/gitlab-plugin/
GNU General Public License v2.0
1.44k stars 612 forks source link

Refactor GitLabConnectionProperty code #1618

Closed shivajee98 closed 6 months ago

shivajee98 commented 6 months ago

Replace explicit cast and null check with Objects.requireNonNull() for improved robustness and readability.

This change enhances the code by providing a more explicit null check, ensuring that the descriptor variable is guaranteed to be non-null. The use of Objects.requireNonNull() makes the code clearer and more modern.