You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@maven.apache.org by ol...@apache.org on 2014/03/07 04:56:02 UTC
svn commit: r1575162 -
/maven/indexer/branches/lucene-4.6/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java
Author: olamy
Date: Fri Mar 7 03:56:02 2014
New Revision: 1575162
URL: http://svn.apache.org/r1575162
Log:
restore 1.6 compat
Modified:
maven/indexer/branches/lucene-4.6/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java
Modified: maven/indexer/branches/lucene-4.6/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java
URL: http://svn.apache.org/viewvc/maven/indexer/branches/lucene-4.6/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java?rev=1575162&r1=1575161&r2=1575162&view=diff
==============================================================================
--- maven/indexer/branches/lucene-4.6/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java (original)
+++ maven/indexer/branches/lucene-4.6/indexer-core/src/main/java/org/apache/maven/index/updater/IndexDataWriter.java Fri Mar 7 03:56:02 2014
@@ -131,14 +131,14 @@ public class IndexDataWriter
throws IOException
{
{
- List<IndexableField> allGroupsFields = new ArrayList<>( 2 );
+ List<IndexableField> allGroupsFields = new ArrayList<IndexableField>( 2 );
allGroupsFields.add( new StringField( ArtifactInfo.ALL_GROUPS, ArtifactInfo.ALL_GROUPS_VALUE, Store.YES));
allGroupsFields.add( new StringField( ArtifactInfo.ALL_GROUPS_LIST, ArtifactInfo.lst2str( allGroups ), Store.YES) );
writeDocumentFields( allGroupsFields );
}
{
- List<IndexableField> rootGroupsFields = new ArrayList<>( 2 );
+ List<IndexableField> rootGroupsFields = new ArrayList<IndexableField>( 2 );
rootGroupsFields.add( new StringField( ArtifactInfo.ROOT_GROUPS, ArtifactInfo.ROOT_GROUPS_VALUE, Store.YES) );
rootGroupsFields.add( new StringField( ArtifactInfo.ROOT_GROUPS_LIST, ArtifactInfo.lst2str( rootGroups ), Store.YES ));
writeDocumentFields( rootGroupsFields );
@@ -186,7 +186,7 @@ public class IndexDataWriter
{
List<IndexableField> fields = document.getFields();
- List<IndexableField> storedFields = new ArrayList<>( fields.size() );
+ List<IndexableField> storedFields = new ArrayList<IndexableField>( fields.size() );
for (IndexableField field : fields )
{