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

OH2-418 | Orthanc Integration #1466

Draft
wants to merge 11 commits into
base: develop
Choose a base branch
from

Conversation

SilverD3
Copy link
Contributor

See OH2-418

@SilverD3 SilverD3 marked this pull request as draft December 10, 2024 13:49
*/
public LocalDate creationDateToLocalDate() {
if (creationDate == null || creationDate.isEmpty()) {
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return null;
return null;

*/
public LocalTime creationTimeToLocalTime() {
if (creationTime == null || creationTime.isEmpty()) {
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return null;
return null;

*/
public LocalDate birthDateToLocalDate() {
if (birthDate == null || birthDate.isEmpty()) {
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return null;
return null;


@Override
public boolean equals(Object o) {
if (this == o) return true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Project standards use braces even for single statement bodies.

*/
public LocalTime timeToLocalTime() {
if (time == null || time.isEmpty()) {
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return null;
return null;

*/
public LocalDate dateToLocalDate() {
if (date == null || date.isEmpty()) {
return null;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return null;
return null;


@Override
public boolean equals(Object o) {
if (this == o) return true;
Copy link
Collaborator

Choose a reason for hiding this comment

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

again, please use braces

public boolean testConnection() throws OHServiceException, OHRestClientException {
String time = feignClientFactory.createClient(true).testConnection();

return time != null && !time.isEmpty() ;
Copy link
Collaborator

Choose a reason for hiding this comment

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

Suggested change
return time != null && !time.isEmpty() ;
return time != null && !time.isEmpty();

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