This is an automated email from the ASF dual-hosted git repository.
mawiesne pushed a commit to branch opennlp-2.x
in repository https://gitbox.apache.org/repos/asf/opennlp.git
The following commit(s) were added to refs/heads/opennlp-2.x by this push:
new 5183434d [2.x]: OPENNLP-1779: Update Checkstyle to 12.0.1 (#876)
5183434d is described below
commit 5183434d96e89b9600757f62c562926185855e45
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
AuthorDate: Tue Oct 14 13:22:53 2025 +0200
[2.x]: OPENNLP-1779: Update Checkstyle to 12.0.1 (#876)
---
.../main/java/opennlp/tools/ml/model/DataIndexerFactory.java | 2 +-
.../opennlp/tools/sentdetect/SentenceDetectorMEFrenchTest.java | 8 ++++----
.../opennlp/tools/sentdetect/SentenceDetectorMEPolishTest.java | 10 +++++-----
.../src/main/java/opennlp/uima/util/ContainingConstraint.java | 2 +-
pom.xml | 2 +-
5 files changed, 12 insertions(+), 12 deletions(-)
diff --git
a/opennlp-tools/src/main/java/opennlp/tools/ml/model/DataIndexerFactory.java
b/opennlp-tools/src/main/java/opennlp/tools/ml/model/DataIndexerFactory.java
index 1e491148..3663682c 100644
--- a/opennlp-tools/src/main/java/opennlp/tools/ml/model/DataIndexerFactory.java
+++ b/opennlp-tools/src/main/java/opennlp/tools/ml/model/DataIndexerFactory.java
@@ -59,7 +59,7 @@ public class DataIndexerFactory {
case AbstractEventTrainer.DATA_INDEXER_ONE_PASS_REAL_VALUE -> new
OnePassRealValueDataIndexer();
default ->
// if the user passes in a class name for the indexer, try to
instantiate the class.
- ExtensionLoader.instantiateExtension(DataIndexer.class,
indexerParam);
+ ExtensionLoader.instantiateExtension(DataIndexer.class,
indexerParam);
};
indexer.init(parameters, reportMap);
diff --git
a/opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEFrenchTest.java
b/opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEFrenchTest.java
index db427775..ce69013f 100644
---
a/opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEFrenchTest.java
+++
b/opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEFrenchTest.java
@@ -60,10 +60,10 @@ public class SentenceDetectorMEFrenchTest extends
AbstractSentenceDetectorTest {
@ValueSource(strings = {
"Je choisis le rêve de la monographie botanique communiqué à la p. 205.",
"Devant la surabondance des idées incidentes que l’analyse apporte à
propos de chacun des " +
- "éléments du contenu de rêve, un doute principiel s’éveillera chez plus
d’un lecteur: peut-on " +
- "donc compter au nombre des pensées de rêve tout ce qui, après coup,
vous vient à l’idée dans " +
- "l’analyse, c.-à-d. peut-on supposer que toutes ces pensées ont déjà été
actives pendant l’état " +
- "de sommeil et ont coopéré à la formation du rêve?"
+ "éléments du contenu de rêve, un doute principiel s’éveillera chez
plus d’un lecteur: peut-on " +
+ "donc compter au nombre des pensées de rêve tout ce qui, après coup,
vous vient à l’idée dans " +
+ "l’analyse, c.-à-d. peut-on supposer que toutes ces pensées ont déjà
été actives pendant l’état " +
+ "de sommeil et ont coopéré à la formation du rêve?"
})
void testSentDetectWithInlineAbbreviationsResultsInOneSentence(String input)
{
SentenceDetectorME sentDetect = new SentenceDetectorME(sentdetectModel);
diff --git
a/opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEPolishTest.java
b/opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEPolishTest.java
index c1a08a9d..dbb4ae83 100644
---
a/opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEPolishTest.java
+++
b/opennlp-tools/src/test/java/opennlp/tools/sentdetect/SentenceDetectorMEPolishTest.java
@@ -62,12 +62,12 @@ public class SentenceDetectorMEPolishTest extends
AbstractSentenceDetectorTest {
@ParameterizedTest
@ValueSource(strings = {
"Freud zauważył, że w normalnych warunkach silne pobudzenie emocjonalne
wymaga " +
- "odpowiedniego rozładowania w formie działania (np. uraza ze strony
jakiejś osoby wymaga " +
- "odwetu) lub opracowania intelektualnego.",
+ "odpowiedniego rozładowania w formie działania (np. uraza ze strony
jakiejś osoby wymaga " +
+ "odwetu) lub opracowania intelektualnego.",
"Z tego pierwszego badania można odnieść wrażenie, że elementy
\"botaniczny\" i \"monografia\" " +
- "znalazły się w treści snu, ponieważ mogą mieć najszerszy kontakt z
większością myśli sennych, " +
- "tj. reprezentują punkty węzłowe, w których spotyka się wiele myśli
sennych, ponieważ są one " +
- "niejednoznaczne w odniesieniu do interpretacji snów."
+ "znalazły się w treści snu, ponieważ mogą mieć najszerszy kontakt z
większością myśli sennych, " +
+ "tj. reprezentują punkty węzłowe, w których spotyka się wiele myśli
sennych, ponieważ są one " +
+ "niejednoznaczne w odniesieniu do interpretacji snów."
})
void testSentDetectWithInlineAbbreviationsResultsInOneSentence(String input)
{
SentenceDetectorME sentDetect = new SentenceDetectorME(sentdetectModel);
diff --git
a/opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java
b/opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java
index 93cf7055..0732c64a 100644
--- a/opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java
+++ b/opennlp-uima/src/main/java/opennlp/uima/util/ContainingConstraint.java
@@ -69,7 +69,7 @@ public final class ContainingConstraint implements
FSMatchConstraint {
private boolean isContaining(AnnotationFS annotation, AnnotationFS
containing) {
return (containing.getBegin() <= annotation.getBegin())
- && (containing.getEnd() >= annotation.getEnd());
+ && (containing.getEnd() >= annotation.getEnd());
}
}
diff --git a/pom.xml b/pom.xml
index 083526c6..2859fd82 100644
--- a/pom.xml
+++ b/pom.xml
@@ -229,7 +229,7 @@
<dependency>
<groupId>com.puppycrawl.tools</groupId>
<artifactId>checkstyle</artifactId>
-
<version>10.20.0</version>
+
<version>12.0.1</version>
</dependency>
</dependencies>
<executions>