aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-repository-layer
diff options
context:
space:
mode:
authorBrett Porter <brett@apache.org>2009-12-02 10:23:42 +0000
committerBrett Porter <brett@apache.org>2009-12-02 10:23:42 +0000
commit209df33fed2f3181dc754197648e4b48c61cb1d4 (patch)
tree8bee0f4ca8a2d5196394a914df6c9de7fcf20be8 /archiva-modules/archiva-base/archiva-repository-layer
parent42122ac3dfa7040cde9a307b21da8b84bd82a90c (diff)
downloadarchiva-209df33fed2f3181dc754197648e4b48c61cb1d4.tar.gz
archiva-209df33fed2f3181dc754197648e4b48c61cb1d4.zip
[MRM-1025] remove model fields that are not used for clarity
git-svn-id: https://svn.apache.org/repos/asf/archiva/branches/MRM-1025@886101 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'archiva-modules/archiva-base/archiva-repository-layer')
-rw-r--r--archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java7
1 files changed, 3 insertions, 4 deletions
diff --git a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java
index a6fc50b82..e587bdd74 100644
--- a/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java
+++ b/archiva-modules/archiva-base/archiva-repository-layer/src/main/java/org/apache/maven/archiva/repository/metadata/RepositoryMetadataReader.java
@@ -19,6 +19,9 @@ package org.apache.maven.archiva.repository.metadata;
* under the License.
*/
+import java.io.File;
+import java.util.Date;
+
import org.apache.commons.lang.math.NumberUtils;
import org.apache.maven.archiva.model.ArchivaRepositoryMetadata;
import org.apache.maven.archiva.model.Plugin;
@@ -27,9 +30,6 @@ import org.apache.maven.archiva.xml.XMLException;
import org.apache.maven.archiva.xml.XMLReader;
import org.dom4j.Element;
-import java.io.File;
-import java.util.Date;
-
/**
* RepositoryMetadataReader - read maven-metadata.xml files.
*
@@ -60,7 +60,6 @@ public class RepositoryMetadataReader
metadata.setVersion( xml.getElementText( "//metadata/version" ) );
metadata.setFileLastModified( new Date( metadataFile.lastModified() ) );
metadata.setFileSize( metadataFile.length() );
- metadata.setWhenIndexed( null );
metadata.setLastUpdated( xml.getElementText( "//metadata/versioning/lastUpdated" ) );
metadata.setLatestVersion( xml.getElementText( "//metadata/versioning/latest" ) );