Skip to content

Commit

Permalink
Merge branch 'hotfix-0.5.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
jamierocks committed May 7, 2020
2 parents c4d8b67 + bc8d994 commit 48a0422
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 16 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ subprojects {

group = 'org.cadixdev'
archivesBaseName = project.name.toLowerCase()
version = '0.5.1'
version = '0.5.2'

repositories {
mavenCentral()
Expand Down
5 changes: 5 additions & 0 deletions changelogs/0.5.2.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
Lorenz 0.5.2
============

Lorenz 0.5.2 addresses issues with using Lorenz's ASM Remapper on Atlas >= 0.2.0.
Specifically, it should now be possibly to concurrently access mappings.
10 changes: 5 additions & 5 deletions lorenz/src/main/java/org/cadixdev/lorenz/MappingSet.java
Original file line number Diff line number Diff line change
Expand Up @@ -25,16 +25,16 @@

package org.cadixdev.lorenz;

import org.cadixdev.lorenz.impl.MappingSetImpl;
import org.cadixdev.lorenz.model.ClassMapping;
import org.cadixdev.lorenz.model.TopLevelClassMapping;
import org.cadixdev.lorenz.model.jar.CascadingFieldTypeProvider;
import org.cadixdev.lorenz.model.jar.FieldTypeProvider;
import org.cadixdev.bombe.type.ArrayType;
import org.cadixdev.bombe.type.FieldType;
import org.cadixdev.bombe.type.MethodDescriptor;
import org.cadixdev.bombe.type.ObjectType;
import org.cadixdev.bombe.type.Type;
import org.cadixdev.lorenz.impl.MappingSetImpl;
import org.cadixdev.lorenz.model.ClassMapping;
import org.cadixdev.lorenz.model.TopLevelClassMapping;
import org.cadixdev.lorenz.model.jar.CascadingFieldTypeProvider;
import org.cadixdev.lorenz.model.jar.FieldTypeProvider;
import org.cadixdev.lorenz.util.Reversible;

import java.util.Collection;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,9 @@

import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Optional;
import java.util.concurrent.ConcurrentHashMap;

/**
* A basic implementation of {@link MappingSet}.
Expand All @@ -44,7 +44,7 @@
*/
public class MappingSetImpl implements MappingSet {

private final Map<String, TopLevelClassMapping> topLevelClasses = new HashMap<>();
private final Map<String, TopLevelClassMapping> topLevelClasses = new ConcurrentHashMap<>();
private final MappingSetModelFactory modelFactory;
private CascadingFieldTypeProvider fieldTypeProvider = new CascadingFieldTypeProvider();

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,22 +25,22 @@

package org.cadixdev.lorenz.impl.model;

import org.cadixdev.bombe.analysis.InheritanceProvider;
import org.cadixdev.bombe.type.signature.FieldSignature;
import org.cadixdev.bombe.type.signature.MethodSignature;
import org.cadixdev.lorenz.MappingSet;
import org.cadixdev.lorenz.model.ClassMapping;
import org.cadixdev.lorenz.model.FieldMapping;
import org.cadixdev.lorenz.model.InnerClassMapping;
import org.cadixdev.lorenz.model.MethodMapping;
import org.cadixdev.bombe.analysis.InheritanceProvider;
import org.cadixdev.bombe.type.signature.FieldSignature;
import org.cadixdev.bombe.type.signature.MethodSignature;

import java.util.Collection;
import java.util.Collections;
import java.util.HashMap;
import java.util.Map;
import java.util.Objects;
import java.util.Optional;
import java.util.StringJoiner;
import java.util.concurrent.ConcurrentHashMap;

/**
* A basic implementation of {@link ClassMapping}.
Expand All @@ -55,10 +55,10 @@ public abstract class AbstractClassMappingImpl<M extends ClassMapping, P>
extends AbstractMappingImpl<M, P>
implements ClassMapping<M, P> {

private final Map<FieldSignature, FieldMapping> fields = new HashMap<>();
private final Map<String, FieldMapping> fieldsByName = new HashMap<>();
private final Map<MethodSignature, MethodMapping> methods = new HashMap<>();
private final Map<String, InnerClassMapping> innerClasses = new HashMap<>();
private final Map<FieldSignature, FieldMapping> fields = new ConcurrentHashMap<>();
private final Map<String, FieldMapping> fieldsByName = new ConcurrentHashMap<>();
private final Map<MethodSignature, MethodMapping> methods = new ConcurrentHashMap<>();
private final Map<String, InnerClassMapping> innerClasses = new ConcurrentHashMap<>();
private boolean complete;

/**
Expand Down

0 comments on commit 48a0422

Please sign in to comment.