[LOGBack-dev] svn commit: r280 - logback/classic/trunk/src/main/java/ch/qos/logback/classic/boolex
noreply.seb at qos.ch
noreply.seb at qos.ch
Tue Jul 25 14:45:06 CEST 2006
Author: seb
Date: Tue Jul 25 14:45:05 2006
New Revision: 280
Modified:
logback/classic/trunk/src/main/java/ch/qos/logback/classic/boolex/JaninoEventEvaluator.java
Log:
Type Safety
Modified: logback/classic/trunk/src/main/java/ch/qos/logback/classic/boolex/JaninoEventEvaluator.java
==============================================================================
--- logback/classic/trunk/src/main/java/ch/qos/logback/classic/boolex/JaninoEventEvaluator.java (original)
+++ logback/classic/trunk/src/main/java/ch/qos/logback/classic/boolex/JaninoEventEvaluator.java Tue Jul 25 14:45:05 2006
@@ -19,8 +19,8 @@
public final static String IMPORT_LEVEL = "import ch.qos.logback.classic.Level;\r\n";
- public final static List DEFAULT_PARAM_NAME_LIST = new ArrayList();
- public final static List DEFAULT_PARAM_TYPE_LIST = new ArrayList();
+ public final static List<String> DEFAULT_PARAM_NAME_LIST = new ArrayList<String>();
+ public final static List<Class> DEFAULT_PARAM_TYPE_LIST = new ArrayList<Class>();
static {
DEFAULT_PARAM_NAME_LIST.add("DEBUG");
@@ -55,7 +55,7 @@
}
protected String[] getParameterNames() {
- List fullNameList = new ArrayList();
+ List<String> fullNameList = new ArrayList<String>();
fullNameList.addAll(DEFAULT_PARAM_NAME_LIST);
for(int i = 0; i < matcherList.size(); i++) {
@@ -67,7 +67,7 @@
}
protected Class[] getParameterTypes() {
- List fullTypeList = new ArrayList();
+ List<Class> fullTypeList = new ArrayList<Class>();
fullTypeList.addAll(DEFAULT_PARAM_TYPE_LIST);
for(int i = 0; i < matcherList.size(); i++) {
fullTypeList.add(Matcher.class);
More information about the logback-dev
mailing list