Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

GRAD2-2934: task is completed. #688

Merged
merged 2 commits into from
Sep 25, 2024
Merged

GRAD2-2934: task is completed. #688

merged 2 commits into from
Sep 25, 2024

Conversation

infstar
Copy link
Contributor

@infstar infstar commented Sep 23, 2024

GRAD2-2934: task is completed.

GRAD2-2934: task is completed.
@@ -350,7 +351,8 @@ private void populate(OngoingUpdateFieldDTO field, GraduationStudentRecordEntity
private String getStringValue(Object value) {
if (value == null)
return null;
return (String) value;
String str = (String) value;
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Need safety checking to avoid a classCastException. Maybe use if(value instanceof String){...}

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

If instanceof operation is used, then null check is not required at line 352. I will update the code.

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The update is committed.

Enhancement is done after code review.
Copy link

sonarcloud bot commented Sep 24, 2024

@infstar infstar merged commit 7ca05f5 into grad-release Sep 25, 2024
5 checks passed
@infstar infstar deleted the feature/GRAD2-2934 branch September 25, 2024 17:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants