private void prepareContributorAvatars()

in src/main/java/org/apache/maven/report/projectinfo/TeamReport.java [151:168]


    private void prepareContributorAvatars(
            Map<Contributor, String> avatarImages,
            AvatarsProvider avatarsProvider,
            List<? extends Contributor> contributors)
            throws IOException {

        for (Contributor contributor : contributors) {

            String picSource = contributor.getProperties().getProperty("picUrl");
            if (picSource == null || picSource.isEmpty()) {
                picSource = externalAvatarImages
                        ? avatarsProvider.getAvatarUrl(contributor.getEmail())
                        : avatarsProvider.getLocalAvatarPath(contributor.getEmail());
            }

            avatarImages.put(contributor, picSource);
        }
    }