remove java 1.5 dependency

git-svn-id: https://svn.apache.org/repos/asf/lucene/java/trunk@791576 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Mark Robert Miller 2009-07-06 19:18:19 +00:00
parent 10fbc9814a
commit 28d65ceee7
2 changed files with 7 additions and 7 deletions

View File

@ -59,8 +59,8 @@ public abstract class ContentSource {
private static final int OTHER = 1;
private static final Map extensionToType = new HashMap();
static {
extensionToType.put(".bz2", Integer.valueOf(BZIP));
extensionToType.put(".bzip", Integer.valueOf(BZIP));
extensionToType.put(".bz2", new Integer(BZIP));
extensionToType.put(".bzip", new Integer(BZIP));
}
protected static final int BUFFER_SIZE = 1 << 16; // 64K

View File

@ -235,11 +235,11 @@ public class EnwikiContentSource extends ContentSource {
"SEP", "OCT", "NOV", "DEC"};
static {
ELEMENTS.put("page", Integer.valueOf(PAGE));
ELEMENTS.put("text", Integer.valueOf(BODY));
ELEMENTS.put("timestamp", Integer.valueOf(DATE));
ELEMENTS.put("title", Integer.valueOf(TITLE));
ELEMENTS.put("id", Integer.valueOf(ID));
ELEMENTS.put("page", new Integer(PAGE));
ELEMENTS.put("text", new Integer(BODY));
ELEMENTS.put("timestamp", new Integer(DATE));
ELEMENTS.put("title", new Integer(TITLE));
ELEMENTS.put("id", new Integer(ID));
}
/**