From eafcc8251b2c00500ab94cc276a8fff1e49935c8 Mon Sep 17 00:00:00 2001 From: Kazuaki Hiraga Date: Tue, 14 May 2019 14:23:11 +0900 Subject: [PATCH] Issue #31 Support Solr/Lucene 8.0.0 --- dictionary/ipadic.properties | 2 +- gradle.properties | 8 ++++---- src/main/java/net/java/sen/util/IOUtils.java | 18 +++++++++--------- 3 files changed, 14 insertions(+), 14 deletions(-) diff --git a/dictionary/ipadic.properties b/dictionary/ipadic.properties index 09c02cc..1bddc59 100644 --- a/dictionary/ipadic.properties +++ b/dictionary/ipadic.properties @@ -1,4 +1,4 @@ -dic.home=http://chasen.naist.jp/stable/ipadic/ +dic.home=http://jaist.dl.osdn.jp/ipadic/24432/ dic.version=2.6.1 dic.archive=ipadic-${dic.version}.tar.gz dic.dir=ipadic-${dic.version} diff --git a/gradle.properties b/gradle.properties index 5710115..53fb108 100644 --- a/gradle.properties +++ b/gradle.properties @@ -10,10 +10,10 @@ compileJava.options.encoding = UTF-8 # set default dictionary type # to change the dictionary type to naist-chasen, gradle dictype = ipadic -luceneVersion = 7.4.0 -junitVersion = 4.10 -randomizedrunnerVersion = 2.6.0 -icu4jVersion = 61.1 +luceneVersion = 8.0.0 +junitVersion = 4.12 +randomizedrunnerVersion = 2.7.2 +icu4jVersion = 62.1 restletVersion = 2.3.0 # directories diff --git a/src/main/java/net/java/sen/util/IOUtils.java b/src/main/java/net/java/sen/util/IOUtils.java index 20e8ae3..665974b 100644 --- a/src/main/java/net/java/sen/util/IOUtils.java +++ b/src/main/java/net/java/sen/util/IOUtils.java @@ -38,14 +38,14 @@ public class IOUtils { } /** - * Closes all given Closeables. Some of the - * Closeables may be null; they are + * Closes all given Closeables. Some of the + * Closeables may be null; they are * ignored. After everything is closed, the method either * throws the first exception it hit while closing, or * completes normally if there were no exceptions. - * + * * @param objects - * objects to call close() on + * objects to call close() on */ public static void close(Closeable... objects) throws IOException { Throwable th = null; @@ -71,11 +71,11 @@ public static void close(Closeable... objects) throws IOException { } } /** - * Closes all given Closeables, suppressing all thrown exceptions. - * Some of the Closeables may be null, they are ignored. - * + * Closes all given Closeables, suppressing all thrown exceptions. + * Some of the Closeables may be null, they are ignored. + * * @param objects - * objects to call close() on + * objects to call close() on */ public static void closeWhileHandlingException(Closeable... objects) throws IOException { for (Closeable object : objects) { @@ -100,5 +100,5 @@ private static final void addSuppressed(Throwable exception, Throwable suppresse } } } - + }