Toggle navigation
Home
java.util.Map to com.google.common.collect.Multimap
No. of Instances - 38
No. of Commits - 19
No. of Projects - {'OpenTripPlanner', 'closure-compiler', 'pulsar', 'Singularity', 'titan', 'killbill', 'sonarqube', 'nd4j', 'drill'}
Hierarchy/Composition: -
Primitive Info: -
NameSpace: Jdk -> Internal
Mapping:
Other
new ArrayList<SingularityTaskId>()
to
taskId
new NameNodePair(origName.getString(),exportSpec)
to
maybeName
k -> UnionTypeBuilder.createForPropertyChecking(this)
to
type
Rename Variable
eligbleTaskIdByRequest
to
eligibleTaskIdByRequestId
tmp
to
cancellingPairPerInvoiceItemId
tmp
to
cancellingPairPerInvoiceItemId
exportMap
to
exportsByLocalName
exportMap
to
exportsByLocalName
exportMap
to
exportsByLocalName
caracById
to
subByCaracId
countGroupsByLogins
to
selectGroupsByLogins
properties
to
rowsByPropertyKey
Cascading Type Change (Different)
List<Item>
to
Collection<Item>
Add or Remove Method invocation
exportedName
to
exportSpec.getFirstChild().getString()
moduleName
to
exportSpec.getLastChild().getString()
moduleName
to
exportSpec.getLastChild()
nameFromOtherModule
to
exportSpec.getLastChild().getString()
exportSpec.getLastChild().getString()
to
name
origName.getString()
to
name
name
to
name
doc.entrySet()
to
doc.entries()
doc.entrySet()
to
doc.entries()
fullCarac.id()
to
fullCarac.parentId()
batchReportMeasures.entrySet()
to
batchReportMeasures.asMap().entrySet()
docIds.stream().map(itemsById::get).filter(Objects::nonNull)
to
docIds.stream().map(itemsById::get).flatMap(Collection::stream).filter(Objects::nonNull)
Arrays.stream(values).map(value -> new Webhook(properties.get("sonar.webhooks.global." + value + ".name"),properties.get("sonar.webhooks.global." + value + ".url"),defaultOrganizationUuid,null))
to
Arrays.stream(values).map(value -> { Optional<PropertyRow> name=rowsByPropertyKey.get("sonar.webhooks.global." + value + ".name").stream().findFirst(); Optional<PropertyRow> url=rowsByPropertyKey.get("sonar.webhooks.global." + value + ".url").stream().findFirst(); if (name.isPresent() && url.isPresent()) { return new Webhook(name.get(),url.get(),defaultOrganizationUuid,null); } LOGGER.warn("Global webhook missing name and/or url will be deleted (name='{}', url='{}')",name.map(PropertyRow::value).orElse(null),url.map(PropertyRow::value).orElse(null)); return null; } ).filter(Objects::nonNull)
Update Class Instacne Creation
new NameNodePair(name,maybeName)
to
new NameNodePair("default",child)
Rename Method invocation
computeIfAbsent
to
put