You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@groovy.apache.org by su...@apache.org on 2019/06/29 16:19:26 UTC
[groovy] branch master updated: Trivial refactoring: Remove
redundant initializer
This is an automated email from the ASF dual-hosted git repository.
sunlan 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 33c893a Trivial refactoring: Remove redundant initializer
33c893a is described below
commit 33c893a544589218a998b8855bf98c475ab6c255
Author: Daniel Sun <su...@apache.org>
AuthorDate: Sun Jun 30 00:19:10 2019 +0800
Trivial refactoring: Remove redundant initializer
---
src/main/java/org/codehaus/groovy/classgen/Verifier.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/main/java/org/codehaus/groovy/classgen/Verifier.java b/src/main/java/org/codehaus/groovy/classgen/Verifier.java
index a8fe634..dae1943 100644
--- a/src/main/java/org/codehaus/groovy/classgen/Verifier.java
+++ b/src/main/java/org/codehaus/groovy/classgen/Verifier.java
@@ -1428,7 +1428,7 @@ public class Verifier implements GroovyClassVisitor, Opcodes {
boolean oldM = ClassHelper.isPrimitiveType(oldMethod.getReturnType());
boolean newM = ClassHelper.isPrimitiveType(overridingMethod.getReturnType());
if (oldM || newM) {
- String message = "";
+ String message;
if (oldM && newM) {
message = " with old and new method having different primitive return types";
} else if (newM) {