Toggle navigation
Home
java.util.List to com.google.common.collect.Multimap
No. of Instances - 15
No. of Commits - 6
No. of Projects - {'sonarqube', 'che', 'geoserver', 'presto'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> External
Mapping:
Add or Remove Method invocation
clazz.getMethods()
to
String.CASE_INSENSITIVE_ORDER
Arrays.asList(String.CASE_INSENSITIVE_ORDER)
to
Multimaps.newListMultimap(new TreeMap<>(String.CASE_INSENSITIVE_ORDER),() -> new ArrayList<>())
routes
to
ArrayListMultimap.create()
services
to
ArrayListMultimap.create()
assertThat(updatedProfiles).extracting(QProfileName::getName,QProfileName::getLanguage)
to
assertThat(updatedProfiles.keySet()).extracting(QProfileName::getName,QProfileName::getLanguage)
assertThat(updatedProfiles).extracting(QProfileName::getName,QProfileName::getLanguage)
to
assertThat(updatedProfiles.keySet()).extracting(QProfileName::getName,QProfileName::getLanguage)
changedProfiles.stream().map(changedProfile -> { String profileName=changedProfile.getName(); String languageName=languages.get(changedProfile.getLanguage()).getName(); return new Profile(profileName,languageName); } )
to
changedProfiles.keySet().stream().map(changedProfile -> { String profileName=changedProfile.getName(); String languageName=languages.get(changedProfile.getLanguage()).getName(); Collection<ActiveRuleChange> activeRuleChanges=changedProfiles.get(changedProfile); int newRules=(int)activeRuleChanges.stream().map(ActiveRuleChange::getType).filter(ACTIVATED::equals).count(); int updatedRules=(int)activeRuleChanges.stream().map(ActiveRuleChange::getType).filter(UPDATED::equals).count(); int removedRules=(int)activeRuleChanges.stream().map(ActiveRuleChange::getType).filter(DEACTIVATED::equals).count(); return Profile.newBuilder(profileName,languageName).setNewRules(newRules).setUpdatedRules(updatedRules).setRemovedRules(removedRules).build(); } )
Rename Variable
profileNames
to
profiles