You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by pa...@apache.org on 2021/11/25 02:20:25 UTC
[groovy] branch master updated: fix japicmp serialVersionUid warnings
This is an automated email from the ASF dual-hosted git repository.
paulk pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/groovy.git
The following commit(s) were added to refs/heads/master by this push:
new e9d94be fix japicmp serialVersionUid warnings
e9d94be is described below
commit e9d94be9ebe7124bfe90a658eac6623700fbcb10
Author: Paul King <pa...@asert.com.au>
AuthorDate: Thu Nov 25 12:20:19 2021 +1000
fix japicmp serialVersionUid warnings
---
.../main/groovy/org/apache/groovy/groovysh/CommandException.groovy | 5 ++---
.../main/groovy/org/apache/groovy/groovysh/ExitNotification.groovy | 6 +++---
.../groovy/groovysh/completion/antlr4/GroovySyntaxCompleter.groovy | 1 +
3 files changed, 6 insertions(+), 6 deletions(-)
diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/CommandException.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/CommandException.groovy
index d4f8e3e..5181a2d 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/CommandException.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/CommandException.groovy
@@ -24,11 +24,10 @@ import groovy.transform.CompileStatic
* Thrown to indicate a problem with command execution.
*/
@CompileStatic
-class CommandException
- extends Exception
-{
+class CommandException extends Exception {
private final Command command
+ private static final long serialVersionUID = 3904423461953446923L;
CommandException(final Command command, final String msg) {
super(msg)
diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/ExitNotification.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/ExitNotification.groovy
index 847a348..76f3259 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/ExitNotification.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/ExitNotification.groovy
@@ -21,9 +21,9 @@ package org.apache.groovy.groovysh
/**
* Notification to signal the shell to exit.
*/
-class ExitNotification
- extends Error
-{
+class ExitNotification extends Error {
+ private static final long serialVersionUID = 6530248218832943112L;
+
/** The exit code. */
final int code
diff --git a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/completion/antlr4/GroovySyntaxCompleter.groovy b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/completion/antlr4/GroovySyntaxCompleter.groovy
index d1b5a1e..8b7cbc3 100644
--- a/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/completion/antlr4/GroovySyntaxCompleter.groovy
+++ b/subprojects/groovy-groovysh/src/main/groovy/org/apache/groovy/groovysh/completion/antlr4/GroovySyntaxCompleter.groovy
@@ -308,6 +308,7 @@ class GroovySyntaxCompleter implements Completer {
static class InStringException extends Exception {
int column
String openDelim
+ private static final long serialVersionUID = -2554041223576762580L;
@Override
String toString() {