This repository was archived by the owner on May 5, 2021. It is now read-only.
File tree Expand file tree Collapse file tree
sormas-ui/src/main/java/de/symeda/sormas/ui/contact Expand file tree Collapse file tree Original file line number Diff line number Diff line change 2525
2626import org .joda .time .LocalDate ;
2727
28+ import com .google .common .collect .Sets ;
2829import com .vaadin .shared .ui .ContentMode ;
2930import com .vaadin .ui .Button ;
3031import com .vaadin .ui .Label ;
@@ -317,22 +318,22 @@ private void updateContactCategory(ContactProximity proximity) {
317318 case FACE_TO_FACE_LONG :
318319 case TOUCHED_FLUID :
319320 case AEROSOL :
320- contactCategory .setValue (ContactCategory .HIGH_RISK );
321+ contactCategory .setValue (Sets . newHashSet ( ContactCategory .HIGH_RISK ) );
321322 break ;
322323 case MEDICAL_UNSAFE :
323- contactCategory .setValue (ContactCategory .HIGH_RISK_MED );
324+ contactCategory .setValue (Sets . newHashSet ( ContactCategory .HIGH_RISK_MED ) );
324325 break ;
325326 case MEDICAL_LIMITED :
326- contactCategory .setValue (ContactCategory .MEDIUM_RISK_MED );
327+ contactCategory .setValue (Sets . newHashSet ( ContactCategory .MEDIUM_RISK_MED ) );
327328 break ;
328329 case SAME_ROOM :
329330 case FACE_TO_FACE_SHORT :
330331 case MEDICAL_SAME_ROOM :
331- contactCategory .setValue (ContactCategory .LOW_RISK );
332+ contactCategory .setValue (Sets . newHashSet ( ContactCategory .LOW_RISK ) );
332333 break ;
333334 case MEDICAL_DISTANT :
334335 case MEDICAL_SAFE :
335- contactCategory .setValue (ContactCategory .NO_RISK );
336+ contactCategory .setValue (Sets . newHashSet ( ContactCategory .NO_RISK ) );
336337 break ;
337338 default :
338339 }
You can’t perform that action at this time.
0 commit comments