summaryrefslogtreecommitdiff
path: root/scripting/java
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-04-26 08:36:04 +0200
committerNoel Grandin <noel@peralex.com>2013-04-26 08:36:04 +0200
commit6f17a2f66fa2a4fec56334783410005c4f2f357a (patch)
tree728696d0f0603783e8d50b9c4c7b43f3016d51ce /scripting/java
parent6d4c1f0d4a623bf7f3b3a0af2ece5c969d5aec77 (diff)
Java cleanup, access static methods using correct syntax
Change-Id: I8443aef43d82de33ac7cb47d40cc5b544f7c9c87
Diffstat (limited to 'scripting/java')
-rw-r--r--scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java2
-rw-r--r--scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java2
-rw-r--r--scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java6
3 files changed, 5 insertions, 5 deletions
diff --git a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
index 24e7b8c27540..27254a42d0b5 100644
--- a/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
+++ b/scripting/java/com/sun/star/script/framework/io/UCBStreamHandler.java
@@ -48,7 +48,7 @@ public class UCBStreamHandler extends URLStreamHandler {
{
LogUtils.DEBUG( "UCBStreamHandler ctor, scheme = " + scheme );
this.m_xContext = ctxt;
- this.m_ucbscheme = scheme;
+ UCBStreamHandler.m_ucbscheme = scheme;
this.m_xSimpleFileAccess = xSFA;
}
diff --git a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
index 73ce9c59505c..e62f41ebedfd 100644
--- a/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
+++ b/scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java
@@ -278,7 +278,7 @@ class ScriptImpl implements XScript
result = ctxt.evaluateString(scope,
source, "<stdin>", 1, null);
- result = ctxt.toString(result);
+ result = Context.toString(result);
return result;
}
catch (JavaScriptException jse) {
diff --git a/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java b/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java
index 2cbbf146cd8b..9110562a6342 100644
--- a/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java
+++ b/scripting/java/org/openoffice/idesupport/filter/ExceptParcelFilter.java
@@ -28,14 +28,14 @@ public class ExceptParcelFilter implements FileFilter {
public void setParcelToRemove(String parcelName)
{
- this.parcelName = parcelName;
+ ExceptParcelFilter.parcelName = parcelName;
}
public static ExceptParcelFilter getInstance() {
return filter;
}
public boolean validate(String name) {
- if (name.startsWith(this.parcelName))
+ if (name.startsWith(ExceptParcelFilter.parcelName))
return true;
return false;
}
@@ -43,7 +43,7 @@ public class ExceptParcelFilter implements FileFilter {
public String toString() {
StringBuffer buf = new StringBuffer(DESCRIPTION + ": ");
- buf.append("<" + this.parcelName + ">");
+ buf.append("<" + ExceptParcelFilter.parcelName + ">");
return buf.toString();
}