summaryrefslogtreecommitdiffstats
path: root/archiva-modules/plugins/metadata-store-jcr/src
diff options
context:
space:
mode:
authorOlivier Lamy <olamy@apache.org>2014-04-10 16:36:21 +1000
committerOlivier Lamy <olamy@apache.org>2014-04-10 16:36:21 +1000
commit5fa4ceb731b5440b7d7439c2d924f299dc109384 (patch)
tree06952be8c970f4f3ecf6a1769907c0d4dc678eae /archiva-modules/plugins/metadata-store-jcr/src
parent03601570ef70ec4c1ae9f2b992333b8200c016d5 (diff)
downloadarchiva-5fa4ceb731b5440b7d7439c2d924f299dc109384.tar.gz
archiva-5fa4ceb731b5440b7d7439c2d924f299dc109384.zip
more diamond
Diffstat (limited to 'archiva-modules/plugins/metadata-store-jcr/src')
-rw-r--r--archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java16
1 files changed, 8 insertions, 8 deletions
diff --git a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
index bd80b15f4..2acdbaab8 100644
--- a/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
+++ b/archiva-modules/plugins/metadata-store-jcr/src/main/java/org/apache/archiva/metadata/repository/jcr/JcrMetadataRepository.java
@@ -423,7 +423,7 @@ public class JcrMetadataRepository
public List<String> getMetadataFacets( String repositoryId, String facetId )
throws MetadataRepositoryException
{
- List<String> facets = new ArrayList<String>();
+ List<String> facets = new ArrayList<>();
try
{
@@ -625,7 +625,7 @@ public class JcrMetadataRepository
}
QueryResult result = query.execute();
- artifacts = new ArrayList<ArtifactMetadata>();
+ artifacts = new ArrayList<>();
for ( Node n : JcrUtils.getNodes( result ) )
{
artifacts.add( getArtifactFromNode( repoId, n ) );
@@ -650,7 +650,7 @@ public class JcrMetadataRepository
{
Node node = root.getNode( "repositories" );
- repositories = new ArrayList<String>();
+ repositories = new ArrayList<>();
NodeIterator i = node.getNodes();
while ( i.hasNext() )
{
@@ -684,7 +684,7 @@ public class JcrMetadataRepository
query.bindValue( "checksum", valueFactory.createValue( checksum ) );
QueryResult result = query.execute();
- artifacts = new ArrayList<ArtifactMetadata>();
+ artifacts = new ArrayList<>();
for ( Node n : JcrUtils.getNodes( result ) )
{
artifacts.add( getArtifactFromNode( repositoryId, n ) );
@@ -728,7 +728,7 @@ public class JcrMetadataRepository
Query query = getJcrSession().getWorkspace().getQueryManager().createQuery( q, Query.JCR_SQL2 );
QueryResult result = query.execute();
- artifacts = new ArrayList<ArtifactMetadata>();
+ artifacts = new ArrayList<>();
for ( Node n : JcrUtils.getNodes( result ) )
{
if ( n.isNodeType( ARTIFACT_NODE_TYPE ) )
@@ -988,7 +988,7 @@ public class JcrMetadataRepository
throws MetadataResolutionException
{
- List<ProjectVersionReference> references = new ArrayList<ProjectVersionReference>();
+ List<ProjectVersionReference> references = new ArrayList<>();
// TODO: bind variables instead
String q = "SELECT * FROM [archiva:dependency] WHERE ISDESCENDANTNODE([/repositories/" + repositoryId +
@@ -1200,7 +1200,7 @@ public class JcrMetadataRepository
String projectVersion )
throws MetadataResolutionException
{
- List<ArtifactMetadata> artifacts = new ArrayList<ArtifactMetadata>();
+ List<ArtifactMetadata> artifacts = new ArrayList<>();
try
{
@@ -1377,7 +1377,7 @@ public class JcrMetadataRepository
private Collection<String> getNodeNames( String path, String nodeType )
throws MetadataResolutionException
{
- List<String> names = new ArrayList<String>();
+ List<String> names = new ArrayList<>();
try
{