diff --git a/.gitignore b/.gitignore index 46772a6..7ea66c9 100644 --- a/.gitignore +++ b/.gitignore @@ -162,3 +162,5 @@ buildNumber.properties # End of https://www.toptal.com/developers/gitignore/api/java,maven,intellij docker-compose.yml +.settings +.flattened-pom.xml diff --git a/pom.xml b/pom.xml index 245cf8e..5f3107e 100644 --- a/pom.xml +++ b/pom.xml @@ -1,58 +1,49 @@ 4.0.0 - - org.springframework.boot - spring-boot-starter-parent - 3.4.0 - + + io.github.ardoco + parent + 2.0.0-refactoring - io.github.ardoco + stanfordnlp - 1.1.0-SNAPSHOT - + StanfordCoreNLP-Provider-Service Microservice for Standford Core NLP - - 21 - ${java.version} - ${java.version} - ${java.version} - 1.0.0 - 4.5.7 - 2.44.0.BETA4 - + + + + + org.springframework.boot + spring-boot-dependencies + 3.4.0 + pom + import + + + + com.h2database h2 runtime - - edu.stanford.nlp - stanford-corenlp - ${stanford-corenlp.version} - - - edu.stanford.nlp - stanford-corenlp - ${stanford-corenlp.version} - models - io.github.ardoco.core common - ${ardoco.core.version} + ${ardoco.version} io.github.ardoco.core text-provider-json - ${ardoco.core.version} + ${ardoco.version} io.github.ardoco.tlr text-preprocessing - ${ardoco.core.version} + ${ardoco.version} org.springframework.boot @@ -74,7 +65,6 @@ org.testcontainers testcontainers - 1.20.4 diff --git a/src/main/java/edu/kit/kastel/mcse/ardoco/stanfordnlp/corenlp/TextRequestBody.java b/src/main/java/edu/kit/kastel/mcse/ardoco/stanfordnlp/corenlp/TextRequestBody.java index 8d58959..cd01513 100644 --- a/src/main/java/edu/kit/kastel/mcse/ardoco/stanfordnlp/corenlp/TextRequestBody.java +++ b/src/main/java/edu/kit/kastel/mcse/ardoco/stanfordnlp/corenlp/TextRequestBody.java @@ -1,15 +1,9 @@ package edu.kit.kastel.mcse.ardoco.stanfordnlp.corenlp; -import java.io.UnsupportedEncodingException; import java.net.URLDecoder; import java.nio.charset.StandardCharsets; -import java.util.Base64; - -import org.slf4j.Logger; -import org.slf4j.LoggerFactory; public class TextRequestBody { - private static final Logger logger = LoggerFactory.getLogger(TextRequestBody.class); private String text; @@ -26,6 +20,6 @@ public void setText(String text) { } public String getText() { - return text; + return this.text; } }