Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api/src/main/java/org/openmrs/api/impl/ObsServiceImpl.java
Original file line number Diff line number Diff line change
Expand Up @@ -679,7 +679,7 @@ public <T> T getRefByUuid(Class<T> type, String uuid) {
if (Obs.class.equals(type)) {
return (T) getObsByUuid(uuid);
}
throw new APIException("Unsupported type for getRefByUuid: " + type != null ? type.getName() : "null");
throw new APIException("Unsupported type for getRefByUuid: " + (type != null ? type.getName() : "null"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1386,7 +1386,7 @@ public <T> T getRefByUuid(Class<T> type, String uuid) {
if (OrderGroupAttributeType.class.equals(type)) {
return (T) getOrderGroupAttributeTypeByUuid(uuid);
}
throw new APIException("Unsupported type for getRefByUuid: " + type != null ? type.getName() : "null");
throw new APIException("Unsupported type for getRefByUuid: " + (type != null ? type.getName() : "null"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -1031,7 +1031,7 @@ public <T> T getRefByUuid(Class<T> type, String uuid) {
if (PersonAddress.class.equals(type)) {
return (T) getPersonAddressByUuid(uuid);
}
throw new APIException("Unsupported type for getRefByUuid: " + type != null ? type.getName() : "null");
throw new APIException("Unsupported type for getRefByUuid: " + (type != null ? type.getName() : "null"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -833,7 +833,7 @@ public <T> T getRefByUuid(Class<T> type, String uuid) {
if (User.class.equals(type)) {
return (T) getUserByUuid(uuid);
}
throw new APIException("Unsupported type for getRefByUuid: " + type != null ? type.getName() : "null");
throw new APIException("Unsupported type for getRefByUuid: " + (type != null ? type.getName() : "null"));
}

@Override
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -439,7 +439,7 @@ public <T> T getRefByUuid(Class<T> type, String uuid) {
if (VisitAttributeType.class.equals(type)) {
return (T) getVisitAttributeTypeByUuid(uuid);
}
throw new APIException("Unsupported type for getRefByUuid: " + type != null ? type.getName() : "null");
throw new APIException("Unsupported type for getRefByUuid: " + (type != null ? type.getName() : "null"));
}

@Override
Expand Down