This repository was archived by the owner on Oct 29, 2023. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +6
-4
lines changed
src/main/java/com/cybozu/labs/langdetect Expand file tree Collapse file tree 2 files changed +6
-4
lines changed Original file line number Diff line number Diff line change @@ -8,7 +8,7 @@ buildscript {
8
8
}
9
9
10
10
dependencies {
11
- classpath " org.elasticsearch.gradle:build-tools:6.2.4 "
11
+ classpath " org.elasticsearch.gradle:build-tools:6.3.0 "
12
12
}
13
13
}
14
14
@@ -18,11 +18,11 @@ plugins {
18
18
}
19
19
20
20
group = ' de.spinscale.elasticsearch.plugin'
21
- version = ' 6.2.4 .1-SNAPSHOT'
21
+ version = ' 6.3.0 .1-SNAPSHOT'
22
22
23
23
apply plugin : ' java'
24
- apply plugin : ' elasticsearch.esplugin'
25
24
apply plugin : ' idea'
25
+ apply plugin : ' elasticsearch.esplugin'
26
26
27
27
// license of this project
28
28
licenseFile = rootProject. file(' LICENSE.txt' )
Original file line number Diff line number Diff line change 19
19
20
20
import com .cybozu .labs .langdetect .util .LangProfile ;
21
21
import org .elasticsearch .common .io .FileSystemUtils ;
22
+ import org .elasticsearch .common .xcontent .DeprecationHandler ;
22
23
import org .elasticsearch .common .xcontent .NamedXContentRegistry ;
23
24
import org .elasticsearch .common .xcontent .XContentType ;
24
25
import org .elasticsearch .env .Environment ;
@@ -66,7 +67,8 @@ public static void loadProfileFromClassPath(Environment environment) throws Lang
66
67
String path = iter .next ().toString ().replaceFirst ("/" ,"" );
67
68
InputStream stream = SecureDetectorFactory .class .getClassLoader ().getResourceAsStream (path );
68
69
69
- Map <String , Object > data = XContentType .JSON .xContent ().createParser (NamedXContentRegistry .EMPTY , stream ).map ();
70
+ Map <String , Object > data = XContentType .JSON .xContent ().createParser (NamedXContentRegistry .EMPTY ,
71
+ DeprecationHandler .THROW_UNSUPPORTED_OPERATION , stream ).map ();
70
72
profiles .put (path , createLangProfile (data ));
71
73
}
72
74
ds .close ();
You can’t perform that action at this time.
0 commit comments