aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/metadata/metadata-model/src
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-11-27 13:09:04 +0000
committerBrett Porter <brett@apache.org>2009-11-27 13:09:04 +0000
commitc5cb5db5c8fd361b6c777471e9345a510fa9c48a (patch)
treebc5a2190c51d943c982fb85d7ec202945773e1eb /archiva-modules/metadata/metadata-model/src
parent453cf94a457478980363cf6eddfd43e010bb989d (diff)
downloadarchiva-c5cb5db5c8fd361b6c777471e9345a510fa9c48a.tar.gz
archiva-c5cb5db5c8fd361b6c777471e9345a510fa9c48a.zip
[MRM-1283] moved first part of browse() functionality over to metadata repository
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@884866 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/metadata/metadata-model/src')
-rw-r--r--archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java18
1 files changed, 3 insertions, 15 deletions
diff --git a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
index 0f60d601e..5e4626f94 100644
--- a/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
+++ b/archiva-modules/metadata/metadata-model/src/main/java/org/apache/archiva/metadata/model/ProjectVersionMetadata.java
@@ -43,13 +43,13 @@ public class ProjectVersionMetadata
private CiManagement ciManagement;
- private List<License> licenses;
+ private List<License> licenses = new ArrayList<License>();
private Map<String, ProjectVersionFacet> facets = new HashMap<String, ProjectVersionFacet>();
- private List<MailingList> mailingLists;
+ private List<MailingList> mailingLists = new ArrayList<MailingList>();
- private List<Dependency> dependencies;
+ private List<Dependency> dependencies = new ArrayList<Dependency>();
public String getId()
{
@@ -143,10 +143,6 @@ public class ProjectVersionMetadata
public void addLicense( License license )
{
- if ( this.licenses == null )
- {
- this.licenses = new ArrayList<License>();
- }
this.licenses.add( license );
}
@@ -182,10 +178,6 @@ public class ProjectVersionMetadata
public void addMailingList( MailingList mailingList )
{
- if ( this.mailingLists == null )
- {
- this.mailingLists = new ArrayList<MailingList>();
- }
this.mailingLists.add( mailingList );
}
@@ -201,10 +193,6 @@ public class ProjectVersionMetadata
public void addDependency( Dependency dependency )
{
- if ( this.dependencies == null )
- {
- this.dependencies = new ArrayList<Dependency>();
- }
this.dependencies.add( dependency );
}
}