This is an automated email from the ASF dual-hosted git repository.
ggregory pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/commons-bsf.git
The following commit(s) were added to refs/heads/master by this push:
new 87341a8 Don't initialize an instance or static variable to its
default value
87341a8 is described below
commit 87341a89ba4f3eaa36952db5e982b549eb828abf
Author: Gary Gregory <[email protected]>
AuthorDate: Fri Oct 27 09:36:08 2023 -0400
Don't initialize an instance or static variable to its default value
---
src/main/java/org/apache/bsf/util/event/EventAdapterRegistry.java | 2 +-
taglib/src/org/apache/taglibs/bsf/bsftag.java | 2 +-
2 files changed, 2 insertions(+), 2 deletions(-)
diff --git a/src/main/java/org/apache/bsf/util/event/EventAdapterRegistry.java
b/src/main/java/org/apache/bsf/util/event/EventAdapterRegistry.java
index 1ec63db..749a10e 100644
--- a/src/main/java/org/apache/bsf/util/event/EventAdapterRegistry.java
+++ b/src/main/java/org/apache/bsf/util/event/EventAdapterRegistry.java
@@ -56,7 +56,7 @@ import org.apache.bsf.BSFManager;
public class EventAdapterRegistry {
private static final Hashtable reg = new Hashtable ();
- private static ClassLoader cl = null;
+ private static ClassLoader cl;
private static final String adapterPackage =
"org.apache.bsf.util.event.adapters";
private static final String adapterSuffix = "Adapter";
private static boolean dynamic = true;
diff --git a/taglib/src/org/apache/taglibs/bsf/bsftag.java
b/taglib/src/org/apache/taglibs/bsf/bsftag.java
index 16a5221..1198fc7 100644
--- a/taglib/src/org/apache/taglibs/bsf/bsftag.java
+++ b/taglib/src/org/apache/taglibs/bsf/bsftag.java
@@ -24,7 +24,7 @@ import org.apache.bsf.*;
public class bsftag extends BodyTagSupport implements BodyTag
{
protected static String language;
- protected static int lineNo = 0;
+ protected static int lineNo;
protected static BSFManager mgr;
public void setLanguage(String value) {