Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@ void testResolutionOfAnArtifactWhereOneRemoteRepositoryIsBadButOneIsGood() throw
public void testReadRepoFromModel() throws Exception {
Artifact m = createArtifact(TestMavenWorkspaceReader.ARTIFACT_ID, TestMavenWorkspaceReader.VERSION);
ArtifactMetadataSource source = getContainer().lookup(ArtifactMetadataSource.class, "maven");
ResolutionGroup group = source.retrieve(m, localRepository(), new ArrayList<ArtifactRepository>());
ResolutionGroup group = source.retrieve(m, localRepository(), new ArrayList<>());
List<ArtifactRepository> repositories = group.getResolutionRepositories();
assertEquals(1, repositories.size(), "There should be one repository!");
ArtifactRepository repository = repositories.get(0);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -240,7 +240,7 @@ private Object parseBean(final MXParser parser, final TypeLiteral<?> toType, fin
final Object bean = newImplementation(clazz);

// build map of all known bean properties belonging to the chosen implementation
final Map<String, BeanProperty<Object>> propertyMap = new HashMap<String, BeanProperty<Object>>();
final Map<String, BeanProperty<Object>> propertyMap = new HashMap<>();
for (final BeanProperty<Object> property : new BeanProperties(clazz)) {
final String name = property.getName();
if (!propertyMap.containsKey(name)) {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -192,7 +192,7 @@ public void setLocation(Object key, InputLocation location) {
public void setOtherLocation(Object key, InputLocation location) {
if (location != null) {
if (this.locations == null) {
this.locations = new java.util.LinkedHashMap<Object, InputLocation>();
this.locations = new java.util.LinkedHashMap<>();
}
this.locations.put(key, location);
}
Expand Down Expand Up @@ -277,7 +277,7 @@ public static InputLocation merge(
} else if (targetLocations == null) {
locations = sourceLocations;
} else {
locations = new java.util.LinkedHashMap<Object, InputLocation>();
locations = new java.util.LinkedHashMap<>();
for (java.util.Iterator<Integer> it = indices.iterator(); it.hasNext(); ) {
InputLocation location;
Integer index = it.next();
Expand Down