aboutsummaryrefslogtreecommitdiffstats
path: root/archiva-modules/archiva-base/archiva-xml-tools
diff options
context:
space:
mode:
Diffstat (limited to 'archiva-modules/archiva-base/archiva-xml-tools')
-rw-r--r--archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/ElementTextListClosure.java2
-rw-r--r--archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/XMLReader.java4
-rw-r--r--archiva-modules/archiva-base/archiva-xml-tools/src/test/java/org/apache/archiva/xml/XMLReaderTest.java2
3 files changed, 4 insertions, 4 deletions
diff --git a/archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/ElementTextListClosure.java b/archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/ElementTextListClosure.java
index 37dd0a297..4ee3b9e05 100644
--- a/archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/ElementTextListClosure.java
+++ b/archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/ElementTextListClosure.java
@@ -33,7 +33,7 @@ import java.util.List;
public class ElementTextListClosure
implements Closure
{
- private List<String> list = new ArrayList<String>();
+ private List<String> list = new ArrayList<>();
public void execute( Object input )
{
diff --git a/archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/XMLReader.java b/archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/XMLReader.java
index d87c176f7..714b8d6e3 100644
--- a/archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/XMLReader.java
+++ b/archiva-modules/archiva-base/archiva-xml-tools/src/main/java/org/apache/archiva/xml/XMLReader.java
@@ -298,7 +298,7 @@ public class XMLReader
}
else if ( evaluated instanceof Node )
{
- List<Element> ret = new ArrayList<Element>();
+ List<Element> ret = new ArrayList<>();
ret.add( (Element) evaluated );
return ret;
}
@@ -319,7 +319,7 @@ public class XMLReader
return null;
}
- List<String> ret = new ArrayList<String>();
+ List<String> ret = new ArrayList<>();
for ( Iterator<Element> iter = elemList.iterator(); iter.hasNext(); )
{
Element listelem = iter.next();
diff --git a/archiva-modules/archiva-base/archiva-xml-tools/src/test/java/org/apache/archiva/xml/XMLReaderTest.java b/archiva-modules/archiva-base/archiva-xml-tools/src/test/java/org/apache/archiva/xml/XMLReaderTest.java
index 12d2f451b..05c9855f2 100644
--- a/archiva-modules/archiva-base/archiva-xml-tools/src/test/java/org/apache/archiva/xml/XMLReaderTest.java
+++ b/archiva-modules/archiva-base/archiva-xml-tools/src/test/java/org/apache/archiva/xml/XMLReaderTest.java
@@ -38,7 +38,7 @@ public class XMLReaderTest
{
assertEquals( "Element List Size", expectedTexts.length, elementList.size() );
- List<String> texts = new ArrayList<String>();
+ List<String> texts = new ArrayList<>();
for ( Element element : elementList )
{
texts.add( element.getTextTrim() );