diff options
author | Stephan Bergmann <sbergman@redhat.com> | 2016-03-04 15:37:15 +0100 |
---|---|---|
committer | Stephan Bergmann <sbergman@redhat.com> | 2016-03-04 15:37:15 +0100 |
commit | 305453d2c79221d03452efd917eee122426fd32b (patch) | |
tree | 331293654d34b1050e843530b09784e5e50fca8d /scripting/java/com/sun | |
parent | 8a4e256d67fae1751eda4f774cdee41ef632de04 (diff) |
This ScriptEntry ctor is always called with empty languagedepprops
Change-Id: Ia8ddfecf2f809e9f0132ba59812446973532476c
Diffstat (limited to 'scripting/java/com/sun')
3 files changed, 4 insertions, 10 deletions
diff --git a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java index f1e5d0e52c06..6384f5b5e4b6 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ParcelBrowseNode.java @@ -47,7 +47,6 @@ import com.sun.star.uno.XComponentContext; import java.util.ArrayList; import java.util.Collection; -import java.util.HashMap; import javax.swing.JOptionPane; @@ -207,8 +206,7 @@ public class ParcelBrowseNode extends PropertySet implements String language = container.getLanguage(); - ScriptEntry entry = new ScriptEntry(language, languageName, - new HashMap<String, String>()); + ScriptEntry entry = new ScriptEntry(language, languageName); Parcel parcel = (Parcel)container.getByName(getName()); ScriptMetaData data = new ScriptMetaData(parcel, entry, source); diff --git a/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java b/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java index 627b6ed47109..5f91b1a78699 100644 --- a/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java +++ b/scripting/java/com/sun/star/script/framework/browse/ScriptBrowseNode.java @@ -48,8 +48,6 @@ import com.sun.star.uno.Type; import com.sun.star.uno.UnoRuntime; import com.sun.star.uno.XComponentContext; -import java.util.HashMap; - public class ScriptBrowseNode extends PropertySet implements XBrowseNode, XInvocation { @@ -247,8 +245,7 @@ public class ScriptBrowseNode extends PropertySet implements String language = provider.getName(); - ScriptEntry entry = new ScriptEntry(language, languageName, - new HashMap<String, String>()); + ScriptEntry entry = new ScriptEntry(language, languageName); ScriptMetaData data = new ScriptMetaData(parent, entry, oldSource); diff --git a/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java b/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java index 24718a705f88..eb4eb44beb0c 100644 --- a/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java +++ b/scripting/java/com/sun/star/script/framework/container/ScriptEntry.java @@ -38,9 +38,8 @@ public class ScriptEntry implements Cloneable { this.description = entry.description; } - public ScriptEntry(String language, String languagename, - Map<String, String> languagedepprops) { - this(language, languagename, languagedepprops, ""); + public ScriptEntry(String language, String languagename) { + this(language, languagename, new HashMap<String, String>(), ""); } public ScriptEntry(String language, String languagename, |