diff --git a/src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java b/src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java index 1715fc2c3d..6a0a68051f 100644 --- a/src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java +++ b/src/main/java/org/isf/medicalinventory/gui/InventoryEdit.java @@ -2150,7 +2150,7 @@ private boolean checkParameters(String wardCode, String chargeCode, String disch private JComboBox getJComboMedicalType() { if (medicalTypeComboBox == null) { - medicalTypeComboBox = new JComboBox(); + medicalTypeComboBox = new JComboBox<>(); try { List medicalTypes = medicalTypeManager.getMedicalType(); MedicalType medicalType = new MedicalType(MessageBundle.getMessage("angal.common.all.txt"), MessageBundle.getMessage("angal.common.all.txt"));