mirror of
https://github.com/hapifhir/org.hl7.fhir.core.git
synced 2025-02-07 21:38:15 +00:00
fix hint box = null error
This commit is contained in:
parent
f3d39b4112
commit
644c07429c
@ -33,11 +33,19 @@ public class TranslatingUtilities extends org.hl7.fhir.utilities.TranslatingUtil
|
||||
}
|
||||
|
||||
public String gt(@SuppressWarnings("rawtypes") PrimitiveType value) {
|
||||
return hasTranslator() ? ((TranslationServices) getTranslator()).gt(value) : value.asStringValue();
|
||||
if (value == null || !value.hasPrimitiveValue()) {
|
||||
return null;
|
||||
} else {
|
||||
return hasTranslator() ? ((TranslationServices) getTranslator()).gt(value) : value.asStringValue();
|
||||
}
|
||||
}
|
||||
|
||||
public String egt(@SuppressWarnings("rawtypes") Enumeration<? extends Enum> value) {
|
||||
return hasTranslator() ? ((TranslationServices) getTranslator()).egt(value) : value.asStringValue();
|
||||
if (value == null || !value.hasPrimitiveValue()) {
|
||||
return null;
|
||||
} else {
|
||||
return (value == null || !value.hasPrimitiveValue()) ? null : hasTranslator() ? ((TranslationServices) getTranslator()).egt(value) : value.asStringValue();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user