@ SuppressWarnings ( "PMD.NPathComplexity" ) protected static void processAssigneeData ( Feature feature , JSONObject assignee ) { if ( assignee == null ) { return ; } String key = getString ( assignee , "key" ) ; String name = getString ( assignee , "name" ) ; String displayName = getString ( assignee , "displayName" ) ; feature . setsOwnersID ( key != null ? Collections . singletonList ( key ) : Collections . EMPTY_LIST ) ; feature . setsOwnersUsername ( name != null ? Collections . singletonList ( name ) : Collections . EMPTY_LIST ) ; feature . setsOwnersShortName ( feature . getsOwnersUsername ( ) ) ; feature . setsOwnersFullName ( displayName != null ? Collections . singletonList ( displayName ) : Collections . EMPTY_LIST ) ; }
Process Assignee data for a feature updating the passed in feature