Remove redundant modifiers like public on interface members.
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 @@
*
* @exception BSFException if anything goes wrong while doin' it.
*/
- public Object apply(
+ Object apply(
String source,
int lineNo,
int columnNo,
@@ -86,7 +86,7 @@
* @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 @@
*
* @exception BSFException if anything goes wrong while doin' it.
*/
- public void compileApply(
+ void compileApply(
String source,
int lineNo,
int columnNo,
@@ -127,7 +127,7 @@
* @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 @@
* @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 @@
*
* @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 @@
* @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 @@
* @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 @@
* @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 @@
* @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 @@
*
* @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 @@
* @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 @@
* @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 @@
* @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 ();
}