[LOGBack-dev] svn commit: r297 - logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser
noreply.seb at qos.ch
noreply.seb at qos.ch
Tue Jul 25 15:03:43 CEST 2006
Author: seb
Date: Tue Jul 25 15:03:42 2006
New Revision: 297
Modified:
logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser/ParserTest.java
Log:
Type Safety
Modified: logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser/ParserTest.java
==============================================================================
--- logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser/ParserTest.java (original)
+++ logback/core/trunk/src/test/java/ch/qos/logback/core/pattern/parser/ParserTest.java Tue Jul 25 15:03:42 2006
@@ -70,7 +70,7 @@
Node t = p.parse();
Node witness = new Node(Node.LITERAL, "hello");
KeywordNode n = new KeywordNode("xyz");
- List optionList = new ArrayList();
+ List<String> optionList = new ArrayList<String>();
optionList.add("x");
n.setOptions(optionList);
witness.next = n;
@@ -227,7 +227,7 @@
Node t = p.parse();
KeywordNode witness = new KeywordNode("x");
witness.setFormatInfo(new FormatInfo(45, Integer.MAX_VALUE));
- List ol = new ArrayList();
+ List<String> ol = new ArrayList<String>();
ol.add("test ");
witness.setOptions(ol);
assertEquals(witness, t);
@@ -238,7 +238,7 @@
Node t = p.parse();
KeywordNode witness = new KeywordNode("x");
witness.setFormatInfo(new FormatInfo(45, Integer.MAX_VALUE));
- List ol = new ArrayList();
+ List<String> ol = new ArrayList<String>();
ol.add("a");
ol.add("b");
witness.setOptions(ol);
More information about the logback-dev
mailing list