summaryrefslogtreecommitdiff
path: root/scripting
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-08-13 17:05:54 +0200
committerNoel Grandin <noel@peralex.com>2014-08-20 11:45:28 +0200
commit8c9fdc4a963fd55da59a93c979071f53b84fbc24 (patch)
treee913f69cee6ec9e3e2072f73d58088ae74d2260d /scripting
parent34352e7f1b0fe55da4d1d43921674344ae6deafc (diff)
java: remove modifiers implied by the context
found by PMD Change-Id: I04cbf986ddbcffff987784f381b8a9f52f1b3f31
Diffstat (limited to 'scripting')
-rw-r--r--scripting/java/com/sun/star/script/framework/container/XMLParser.java4
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/ScriptEditor.java10
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceView.java10
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/java/Resolver.java2
-rw-r--r--scripting/java/org/openoffice/idesupport/CommandLineTools.java2
-rw-r--r--scripting/java/org/openoffice/idesupport/MethodFinder.java2
-rw-r--r--scripting/java/org/openoffice/idesupport/filter/FileFilter.java2
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java10
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java8
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java6
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java10
-rw-r--r--scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java2
-rw-r--r--scripting/workben/installer/InstallListener.java2
13 files changed, 35 insertions, 35 deletions
diff --git a/scripting/java/com/sun/star/script/framework/container/XMLParser.java b/scripting/java/com/sun/star/script/framework/container/XMLParser.java
index 867df322234a..b8b64096c06e 100644
--- a/scripting/java/com/sun/star/script/framework/container/XMLParser.java
+++ b/scripting/java/com/sun/star/script/framework/container/XMLParser.java
@@ -24,6 +24,6 @@ import java.io.IOException;
import org.w3c.dom.Document;
public interface XMLParser {
- public Document parse(InputStream inputStream) throws IOException;
- public void write(Document doc, OutputStream out) throws IOException;
+ Document parse(InputStream inputStream) throws IOException;
+ void write(Document doc, OutputStream out) throws IOException;
}
diff --git a/scripting/java/com/sun/star/script/framework/provider/ScriptEditor.java b/scripting/java/com/sun/star/script/framework/provider/ScriptEditor.java
index c9d777542914..834108bc62ba 100644
--- a/scripting/java/com/sun/star/script/framework/provider/ScriptEditor.java
+++ b/scripting/java/com/sun/star/script/framework/provider/ScriptEditor.java
@@ -23,9 +23,9 @@ import com.sun.star.script.framework.container.ScriptMetaData;
public interface ScriptEditor
{
- public Object execute() throws Exception;
- public void indicateErrorLine( int lineNum );
- public void edit(XScriptContext context, ScriptMetaData entry);
- public String getTemplate();
- public String getExtension();
+ Object execute() throws Exception;
+ void indicateErrorLine( int lineNum );
+ void edit(XScriptContext context, ScriptMetaData entry);
+ String getTemplate();
+ String getExtension();
}
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceView.java
index 01448ac52c5b..0055d44889e8 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceView.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptSourceView.java
@@ -18,9 +18,9 @@
package com.sun.star.script.framework.provider.beanshell;
public interface ScriptSourceView {
- public void clear();
- public void update();
- public boolean isModified();
- public void setModified(boolean value);
- public String getText();
+ void clear();
+ void update();
+ boolean isModified();
+ void setModified(boolean value);
+ String getText();
}
diff --git a/scripting/java/com/sun/star/script/framework/provider/java/Resolver.java b/scripting/java/com/sun/star/script/framework/provider/java/Resolver.java
index 42666798645f..af35e3e4c233 100644
--- a/scripting/java/com/sun/star/script/framework/provider/java/Resolver.java
+++ b/scripting/java/com/sun/star/script/framework/provider/java/Resolver.java
@@ -32,7 +32,7 @@ public interface Resolver {
* @param c A Class
* @return The ScriptProxy value
*/
- public ScriptProxy getProxy( ScriptDescriptor sd, Class<?> c )
+ ScriptProxy getProxy( ScriptDescriptor sd, Class<?> c )
throws NoSuchMethodException;
}
diff --git a/scripting/java/org/openoffice/idesupport/CommandLineTools.java b/scripting/java/org/openoffice/idesupport/CommandLineTools.java
index 0b4747d1ccf9..8e2b39776176 100644
--- a/scripting/java/org/openoffice/idesupport/CommandLineTools.java
+++ b/scripting/java/org/openoffice/idesupport/CommandLineTools.java
@@ -86,7 +86,7 @@ public class CommandLineTools {
}
private interface Command {
- public void execute() throws Exception;
+ void execute() throws Exception;
}
private void printUsage() {
diff --git a/scripting/java/org/openoffice/idesupport/MethodFinder.java b/scripting/java/org/openoffice/idesupport/MethodFinder.java
index 448149d776b9..83e81b8d2233 100644
--- a/scripting/java/org/openoffice/idesupport/MethodFinder.java
+++ b/scripting/java/org/openoffice/idesupport/MethodFinder.java
@@ -22,5 +22,5 @@ import java.io.File;
import com.sun.star.script.framework.container.ScriptEntry;
public interface MethodFinder {
- public ScriptEntry[] findMethods(File basedir);
+ ScriptEntry[] findMethods(File basedir);
}
diff --git a/scripting/java/org/openoffice/idesupport/filter/FileFilter.java b/scripting/java/org/openoffice/idesupport/filter/FileFilter.java
index 4f4f19a56afc..f64a902ab255 100644
--- a/scripting/java/org/openoffice/idesupport/filter/FileFilter.java
+++ b/scripting/java/org/openoffice/idesupport/filter/FileFilter.java
@@ -19,5 +19,5 @@
package org.openoffice.idesupport.filter;
public interface FileFilter {
- public boolean validate(String name);
+ boolean validate(String name);
}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java
index f29a419478aa..04ac91f3e741 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/actions/OfficeDocumentCookie.java
@@ -24,10 +24,10 @@ import org.openide.nodes.Node;
public interface OfficeDocumentCookie extends Node.Cookie
{
- public void mount();
- public Enumeration getParcels();
- public void removeParcel(String name);
+ void mount();
+ Enumeration getParcels();
+ void removeParcel(String name);
- public void addChangeListener(ChangeListener cl);
- public void removeChangeListener(ChangeListener cl);
+ void addChangeListener(ChangeListener cl);
+ void removeChangeListener(ChangeListener cl);
}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java
index 91ee95300560..1e4f701234bd 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelCookie.java
@@ -23,11 +23,11 @@ import org.openide.nodes.Node;
public interface ParcelCookie extends Node.Cookie
{
- public File getFile();
+ File getFile();
- public String getLanguage();
+ String getLanguage();
- public void mount();
+ void mount();
- public boolean deploy(File target);
+ boolean deploy(File target);
}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java
index c8604d89c25e..21091196b0e8 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelDescriptorParserCookie.java
@@ -25,9 +25,9 @@ import org.openide.nodes.Node;
public interface ParcelDescriptorParserCookie extends Node.Cookie
{
// should return a NodeList of org.w3c.dom.Element
- public NodeList getScriptElements();
+ NodeList getScriptElements();
- public void addChangeListener(ChangeListener cl);
+ void addChangeListener(ChangeListener cl);
- public void removeChangeListener(ChangeListener cl);
+ void removeChangeListener(ChangeListener cl);
}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java
index 384864aef9de..778bd208b570 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/actions/ParcelFolderCookie.java
@@ -22,12 +22,12 @@ import org.openide.nodes.Node;
public interface ParcelFolderCookie extends Node.Cookie
{
- public void generate();
+ void generate();
- public boolean configure();
+ boolean configure();
- public void setClasspath(String value);
- public String getClasspath();
+ void setClasspath(String value);
+ String getClasspath();
- public String getLanguage();
+ String getLanguage();
}
diff --git a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java b/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java
index 4ec771869fb5..5d7a65559dfd 100644
--- a/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java
+++ b/scripting/java/org/openoffice/netbeans/modules/office/filesystem/OpenOfficeDocFileSystem.java
@@ -783,7 +783,7 @@ System.out.println(" exception: " + ioe.getMessage());
*/
private interface Strategy
{
- public boolean evaluate(Entry entry);
+ boolean evaluate(Entry entry);
}
/* -----------------------------------------------------------
diff --git a/scripting/workben/installer/InstallListener.java b/scripting/workben/installer/InstallListener.java
index 92bd1b1ef399..6dd111559902 100644
--- a/scripting/workben/installer/InstallListener.java
+++ b/scripting/workben/installer/InstallListener.java
@@ -20,5 +20,5 @@ package installer;
public interface InstallListener
{
- public void installationComplete(InstallationEvent e);
+ void installationComplete(InstallationEvent e);
}