Skip to content

Commit 5183434

Browse files
[2.x]: OPENNLP-1779: Update Checkstyle to 12.0.1 (#876)
1 parent a70273c commit 5183434

File tree

5 files changed

+12
-12
lines changed

5 files changed

+12
-12
lines changed

opennlp-tools/src/main/java/opennlp/tools/ml/model/DataIndexerFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -59,7 +59,7 @@ public static DataIndexer getDataIndexer(TrainingParameters parameters, Map<Stri
5959
case AbstractEventTrainer.DATA_INDEXER_ONE_PASS_REAL_VALUE -> new OnePassRealValueDataIndexer();
6060
default ->
6161
// if the user passes in a class name for the indexer, try to instantiate the class.
62-
ExtensionLoader.instantiateExtension(DataIndexer.class, indexerParam);
62+
ExtensionLoader.instantiateExtension(DataIndexer.class, indexerParam);
6363
};
6464

6565
indexer.init(parameters, reportMap);

opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEFrenchTest.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -60,10 +60,10 @@ public static void prepareResources() throws IOException {
6060
@ValueSource(strings = {
6161
"Je choisis le rêve de la monographie botanique communiqué à la p. 205.",
6262
"Devant la surabondance des idées incidentes que l’analyse apporte à propos de chacun des " +
63-
"éléments du contenu de rêve, un doute principiel s’éveillera chez plus d’un lecteur: peut-on " +
64-
"donc compter au nombre des pensées de rêve tout ce qui, après coup, vous vient à l’idée dans " +
65-
"l’analyse, c.-à-d. peut-on supposer que toutes ces pensées ont déjà été actives pendant l’état " +
66-
"de sommeil et ont coopéré à la formation du rêve?"
63+
"éléments du contenu de rêve, un doute principiel s’éveillera chez plus d’un lecteur: peut-on " +
64+
"donc compter au nombre des pensées de rêve tout ce qui, après coup, vous vient à l’idée dans " +
65+
"l’analyse, c.-à-d. peut-on supposer que toutes ces pensées ont déjà été actives pendant l’état " +
66+
"de sommeil et ont coopéré à la formation du rêve?"
6767
})
6868
void testSentDetectWithInlineAbbreviationsResultsInOneSentence(String input) {
6969
SentenceDetectorME sentDetect = new SentenceDetectorME(sentdetectModel);

opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEPolishTest.java

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -62,12 +62,12 @@ public static void prepareResources() throws IOException {
6262
@ParameterizedTest
6363
@ValueSource(strings = {
6464
"Freud zauważył, że w normalnych warunkach silne pobudzenie emocjonalne wymaga " +
65-
"odpowiedniego rozładowania w formie działania (np. uraza ze strony jakiejś osoby wymaga " +
66-
"odwetu) lub opracowania intelektualnego.",
65+
"odpowiedniego rozładowania w formie działania (np. uraza ze strony jakiejś osoby wymaga " +
66+
"odwetu) lub opracowania intelektualnego.",
6767
"Z tego pierwszego badania można odnieść wrażenie, że elementy \"botaniczny\" i \"monografia\" " +
68-
"znalazły się w treści snu, ponieważ mogą mieć najszerszy kontakt z większością myśli sennych, " +
69-
"tj. reprezentują punkty węzłowe, w których spotyka się wiele myśli sennych, ponieważ są one " +
70-
"niejednoznaczne w odniesieniu do interpretacji snów."
68+
"znalazły się w treści snu, ponieważ mogą mieć najszerszy kontakt z większością myśli sennych, " +
69+
"tj. reprezentują punkty węzłowe, w których spotyka się wiele myśli sennych, ponieważ są one " +
70+
"niejednoznaczne w odniesieniu do interpretacji snów."
7171
})
7272
void testSentDetectWithInlineAbbreviationsResultsInOneSentence(String input) {
7373
SentenceDetectorME sentDetect = new SentenceDetectorME(sentdetectModel);

opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ public boolean match(FeatureStructure featureStructure) {
6969

7070
private boolean isContaining(AnnotationFS annotation, AnnotationFS containing) {
7171
return (containing.getBegin() <= annotation.getBegin())
72-
&& (containing.getEnd() >= annotation.getEnd());
72+
&& (containing.getEnd() >= annotation.getEnd());
7373
}
7474

7575
}

pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -229,7 +229,7 @@
229229
<dependency>
230230
<groupId>com.puppycrawl.tools</groupId>
231231
<artifactId>checkstyle</artifactId>
232-
<version>10.20.0</version>
232+
<version>12.0.1</version>
233233
</dependency>
234234
</dependencies>
235235
<executions>

0 commit comments

Comments
 (0)