From 209df33fed2f3181dc754197648e4b48c61cb1d4 Mon Sep 17 00:00:00 2001 From: Brett Porter Date: Wed, 2 Dec 2009 10:23:42 +0000 Subject: [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 --- .../archiva/repository/metadata/RepositoryMetadataReader.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'archiva-modules/archiva-base/archiva-repository-layer') 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" ) ); -- cgit v1.2.3