diff options
author | Olivier Lamy <olamy@apache.org> | 2014-04-10 16:36:21 +1000 |
---|---|---|
committer | Olivier Lamy <olamy@apache.org> | 2014-04-10 16:36:21 +1000 |
commit | 5fa4ceb731b5440b7d7439c2d924f299dc109384 (patch) | |
tree | 06952be8c970f4f3ecf6a1769907c0d4dc678eae /archiva-modules/archiva-base/archiva-xml-tools | |
parent | 03601570ef70ec4c1ae9f2b992333b8200c016d5 (diff) | |
download | archiva-5fa4ceb731b5440b7d7439c2d924f299dc109384.tar.gz archiva-5fa4ceb731b5440b7d7439c2d924f299dc109384.zip |
more diamond
Diffstat (limited to 'archiva-modules/archiva-base/archiva-xml-tools')
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() ); |