You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@uima.apache.org by re...@apache.org on 2023/10/04 14:55:55 UTC
[uima-uimaj] 01/01: Issue #325: Update dependencies
This is an automated email from the ASF dual-hosted git repository.
rec pushed a commit to branch refactoring/325-Update-dependencies
in repository https://gitbox.apache.org/repos/asf/uima-uimaj.git
commit 129a9c22c90696ec2014ffab8a2ace29e0ddd36a
Author: Richard Eckart de Castilho <re...@apache.org>
AuthorDate: Wed Oct 4 16:55:43 2023 +0200
Issue #325: Update dependencies
- Fix compiler warnings
- Switch to github-release-notes profile
- Disable changelog generation during Jenkins builds
---
Jenkinsfile | 2 +-
...le-enabling-changes-report => marker-file-enabling-release-notes | 0
.../main/java/org/apache/uima/cas/impl/AnnotationTreeNodeImpl.java | 2 +-
.../src/main/java/org/apache/uima/impl/UIMAFramework_impl.java | 5 +++--
uimaj-parent/pom.xml | 6 ++++++
5 files changed, 11 insertions(+), 4 deletions(-)
diff --git a/Jenkinsfile b/Jenkinsfile
index 86153e903..1578be720 100644
--- a/Jenkinsfile
+++ b/Jenkinsfile
@@ -19,5 +19,5 @@
defaultPipeline {
// extraMavenArguments = '-Pjacoco,spotbugs,pmd -Ddisable-rc-auto-staging'
- extraMavenArguments = '-Ddisable-rc-auto-staging'
+ extraMavenArguments = '-Ddisable-rc-auto-staging -Ddisable-generate-release-notes'
}
diff --git a/marker-file-enabling-changes-report b/marker-file-enabling-release-notes
similarity index 100%
rename from marker-file-enabling-changes-report
rename to marker-file-enabling-release-notes
diff --git a/uimaj-core/src/main/java/org/apache/uima/cas/impl/AnnotationTreeNodeImpl.java b/uimaj-core/src/main/java/org/apache/uima/cas/impl/AnnotationTreeNodeImpl.java
index 1cdf376e9..e2f0e879e 100644
--- a/uimaj-core/src/main/java/org/apache/uima/cas/impl/AnnotationTreeNodeImpl.java
+++ b/uimaj-core/src/main/java/org/apache/uima/cas/impl/AnnotationTreeNodeImpl.java
@@ -54,7 +54,7 @@ public class AnnotationTreeNodeImpl<T extends AnnotationFS> implements Annotatio
try {
return dtrs.get(i);
} catch (IndexOutOfBoundsException e) {
- throw new CASRuntimeException(CASRuntimeException.CHILD_INDEX_OOB, null);
+ throw new CASRuntimeException(CASRuntimeException.CHILD_INDEX_OOB);
}
}
diff --git a/uimaj-core/src/main/java/org/apache/uima/impl/UIMAFramework_impl.java b/uimaj-core/src/main/java/org/apache/uima/impl/UIMAFramework_impl.java
index 2058a41ae..49652b819 100644
--- a/uimaj-core/src/main/java/org/apache/uima/impl/UIMAFramework_impl.java
+++ b/uimaj-core/src/main/java/org/apache/uima/impl/UIMAFramework_impl.java
@@ -344,7 +344,7 @@ public class UIMAFramework_impl extends UIMAFramework {
// get static method getInstance()
Method instanceMethod = mLoggerClass.getMethod("getInstance", Constants.EMPTY_CLASS_ARRAY);
// invoke getInstance() method and retrieve default logger object
- return (Logger) instanceMethod.invoke(null, Constants.EMPTY_CLASS_ARRAY);
+ return (Logger) instanceMethod.invoke(null, (Object[]) Constants.EMPTY_CLASS_ARRAY);
} catch (NoSuchMethodException e) {
throw new UIMARuntimeException(e);
} catch (InvocationTargetException e) {
@@ -569,7 +569,8 @@ public class UIMAFramework_impl extends UIMAFramework {
Method instanceMethod = mLoggerClass.getMethod("getInstance",
Constants.EMPTY_CLASS_ARRAY);
// invoke getInstance() method and retrieve default logger object
- mDefaultLogger = (Logger) instanceMethod.invoke(null, Constants.EMPTY_CLASS_ARRAY);
+ mDefaultLogger = (Logger) instanceMethod.invoke(null,
+ (Object[]) Constants.EMPTY_CLASS_ARRAY);
} catch (Exception e) {
throw new SAXException(e);
}
diff --git a/uimaj-parent/pom.xml b/uimaj-parent/pom.xml
index 81bf28064..98948bc9f 100644
--- a/uimaj-parent/pom.xml
+++ b/uimaj-parent/pom.xml
@@ -166,6 +166,12 @@
<api_check_oldVersion>3.4.1</api_check_oldVersion>
<assemblySrcDescriptor>src/main/assembly/src.xml</assemblySrcDescriptor>
+
+ <!-- BEGIN PROFILE SETTINGS: generate-release-notes-->
+ <github-repository>uima-uimaj</github-repository>
+ <git-branch>main</git-branch>
+ <previous-release-version>3.4.1</previous-release-version>
+ <!-- END PROFILE SETTINGS: generate-release-notes-->
</properties>
<dependencyManagement>