You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@commons.apache.org by gg...@apache.org on 2020/11/21 17:27:28 UTC
[commons-bsf] branch master updated: Remove redundant modifiers
like public on interface members.
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 4ddfa58 Remove redundant modifiers like public on interface members.
4ddfa58 is described below
commit 4ddfa58066ee0597f6c21c9fb971c8f6a525f035
Author: Gary Gregory <ga...@gmail.com>
AuthorDate: Sat Nov 21 12:27:23 2020 -0500
Remove redundant modifiers like public on interface members.
---
src/main/java/org/apache/bsf/BSFEngine.java | 24 +++++++++++-----------
.../org/apache/bsf/util/event/EventAdapter.java | 2 +-
.../org/apache/bsf/util/event/EventProcessor.java | 4 ++--
.../org/apache/bsf/util/type/TypeConvertor.java | 4 ++--
4 files changed, 17 insertions(+), 17 deletions(-)
diff --git a/src/main/java/org/apache/bsf/BSFEngine.java b/src/main/java/org/apache/bsf/BSFEngine.java
index d7314f3..c2eab8f 100644
--- a/src/main/java/org/apache/bsf/BSFEngine.java
+++ b/src/main/java/org/apache/bsf/BSFEngine.java
@@ -63,7 +63,7 @@ public interface BSFEngine extends PropertyChangeListener {
*
* @exception BSFException if anything goes wrong while doin' it.
*/
- public Object apply(
+ Object apply(
String source,
int lineNo,
int columnNo,
@@ -86,7 +86,7 @@ public interface BSFEngine extends PropertyChangeListener {
* @exception BSFException if anything goes wrong while eval'ing a
* BSFException is thrown. The reason indicates the problem.
*/
- public Object call(Object object, String name, Object[] args)
+ Object call(Object object, String name, Object[] args)
throws BSFException;
/**
* This is used by an application to compile an anonymous function. See
@@ -103,7 +103,7 @@ public interface BSFEngine extends PropertyChangeListener {
*
* @exception BSFException if anything goes wrong while doin' it.
*/
- public void compileApply(
+ void compileApply(
String source,
int lineNo,
int columnNo,
@@ -127,7 +127,7 @@ public interface BSFEngine extends PropertyChangeListener {
* @exception BSFException if anything goes wrong while compiling a
* BSFException is thrown. The reason indicates the problem.
*/
- public void compileExpr(
+ void compileExpr(
String source,
int lineNo,
int columnNo,
@@ -149,7 +149,7 @@ public interface BSFEngine extends PropertyChangeListener {
* @exception BSFException if anything goes wrong while compiling a
* BSFException is thrown. The reason indicates the problem.
*/
- public void compileScript(
+ void compileScript(
String source,
int lineNo,
int columnNo,
@@ -165,7 +165,7 @@ public interface BSFEngine extends PropertyChangeListener {
*
* @exception BSFException if the engine cannot do this operation
*/
- public void declareBean(BSFDeclaredBean bean) throws BSFException;
+ void declareBean(BSFDeclaredBean bean) throws BSFException;
/**
* This is used by an application to evaluate an expression. The
* expression may be string or some other type, depending on the
@@ -181,7 +181,7 @@ public interface BSFEngine extends PropertyChangeListener {
* @exception BSFException if anything goes wrong while eval'ing a
* BSFException is thrown. The reason indicates the problem.
*/
- public Object eval(String source, int lineNo, int columnNo, Object expr)
+ Object eval(String source, int lineNo, int columnNo, Object expr)
throws BSFException;
/**
* This is used by an application to execute some script. The
@@ -198,7 +198,7 @@ public interface BSFEngine extends PropertyChangeListener {
* @exception BSFException if anything goes wrong while exec'ing a
* BSFException is thrown. The reason indicates the problem.
*/
- public void exec(String source, int lineNo, int columnNo, Object script)
+ void exec(String source, int lineNo, int columnNo, Object script)
throws BSFException;
/**
* This is used by an application to execute some script, as though
@@ -216,7 +216,7 @@ public interface BSFEngine extends PropertyChangeListener {
* @exception BSFException if anything goes wrong while exec'ing a
* BSFException is thrown. The reason indicates the problem.
*/
- public void iexec(String source, int lineNo, int columnNo, Object script)
+ void iexec(String source, int lineNo, int columnNo, Object script)
throws BSFException;
/**
@@ -235,12 +235,12 @@ public interface BSFEngine extends PropertyChangeListener {
* @exception BSFException if anything goes wrong while init'ing a
* BSFException is thrown. The reason indicates the problem.
*/
- public void initialize(BSFManager mgr, String lang, Vector declaredBeans)
+ void initialize(BSFManager mgr, String lang, Vector declaredBeans)
throws BSFException;
/**
* Graceful termination
*/
- public void terminate();
+ void terminate();
/**
* Undeclare a previously declared bean.
*
@@ -248,5 +248,5 @@ public interface BSFEngine extends PropertyChangeListener {
*
* @exception BSFException if the engine cannot do this operation
*/
- public void undeclareBean(BSFDeclaredBean bean) throws BSFException;
+ void undeclareBean(BSFDeclaredBean bean) throws BSFException;
}
diff --git a/src/main/java/org/apache/bsf/util/event/EventAdapter.java b/src/main/java/org/apache/bsf/util/event/EventAdapter.java
index 95c5f07..c434069 100644
--- a/src/main/java/org/apache/bsf/util/event/EventAdapter.java
+++ b/src/main/java/org/apache/bsf/util/event/EventAdapter.java
@@ -32,5 +32,5 @@ package org.apache.bsf.util.event;
* @see EventProcessor
*/
public interface EventAdapter {
- public void setEventProcessor (EventProcessor eventProcessor);
+ void setEventProcessor (EventProcessor eventProcessor);
}
diff --git a/src/main/java/org/apache/bsf/util/event/EventProcessor.java b/src/main/java/org/apache/bsf/util/event/EventProcessor.java
index 5a19b41..78779a5 100644
--- a/src/main/java/org/apache/bsf/util/event/EventProcessor.java
+++ b/src/main/java/org/apache/bsf/util/event/EventProcessor.java
@@ -30,7 +30,7 @@ package org.apache.bsf.util.event;
* @see EventAdapter
*/
public interface EventProcessor {
- public void processEvent (String filter, Object[] eventInfo);
- public void processExceptionableEvent (String filter, Object[] eventInfo)
+ void processEvent (String filter, Object[] eventInfo);
+ void processExceptionableEvent (String filter, Object[] eventInfo)
throws Exception;
}
diff --git a/src/main/java/org/apache/bsf/util/type/TypeConvertor.java b/src/main/java/org/apache/bsf/util/type/TypeConvertor.java
index 26b960b..6967665 100644
--- a/src/main/java/org/apache/bsf/util/type/TypeConvertor.java
+++ b/src/main/java/org/apache/bsf/util/type/TypeConvertor.java
@@ -27,6 +27,6 @@ package org.apache.bsf.util.type;
* @see TypeConvertorRegistry
*/
public interface TypeConvertor {
- public Object convert (Class from, Class to, Object obj);
- public String getCodeGenString ();
+ Object convert (Class from, Class to, Object obj);
+ String getCodeGenString ();
}