[Libreoffice-commits] core.git: 3 commits - scripting/java
Caolán McNamara
caolanm at redhat.com
Thu Feb 4 10:46:29 UTC 2016
scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java | 5 +++--
scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java | 2 +-
scripting/java/com/sun/star/script/framework/provider/javascript/ScriptProviderForJavaScript.java | 4 ++--
3 files changed, 6 insertions(+), 5 deletions(-)
New commits:
commit 9b6cc4f4092b23d62c552d8d14ce887d4e77b31f
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jan 21 16:33:39 2016 +0000
coverity#1326631 DE: Dropped or ignored exception
Change-Id: If1f4f46ba51360eff3537f6804286adfe16c4a0e
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 636511d..9465a64 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
@@ -324,7 +324,7 @@ class ScriptImpl implements XScript {
+ lineNum);
editor.indicateErrorLine(lineNum);
}
- } catch (Exception ignore) {
+ } catch (java.net.MalformedURLException ignore) {
}
}
-}
\ No newline at end of file
+}
commit bd5bc033fd8bbf7b972422ded29773be09f1a44a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jan 21 16:32:28 2016 +0000
coverity#1326630 DE: Dropped or ignored exception
Change-Id: I495c1b5d9d0e03a92330fe6b9371183471aee7bb
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
index 8b02bd3..2aabba7 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/ScriptProviderForBeanShell.java
@@ -294,7 +294,7 @@ class ScriptImpl implements XScript {
if (editor != null) {
editor.indicateErrorLine(lineNum);
}
- } catch (Exception ignore) {
+ } catch (java.net.MalformedURLException ignore) {
}
}
commit a7cf2bc5fc1acc4e398be1750c378b754c10924a
Author: Caolán McNamara <caolanm at redhat.com>
Date: Thu Jan 21 16:30:38 2016 +0000
coverity#1326629 DE: Dropped or ignored exception
Change-Id: Ifb82c92eb0eaa019a19deee3dce375204576e2ee
diff --git a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
index 945b3bc..89ef8c9 100644
--- a/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
+++ b/scripting/java/com/sun/star/script/framework/provider/beanshell/PlainSourceView.java
@@ -30,6 +30,7 @@ import javax.swing.JScrollPane;
import javax.swing.JTextArea;
import javax.swing.event.DocumentEvent;
import javax.swing.event.DocumentListener;
+import javax.swing.text.BadLocationException;
public class PlainSourceView extends JScrollPane implements
ScriptSourceView, DocumentListener {
@@ -71,7 +72,7 @@ public class PlainSourceView extends JScrollPane implements
int line = ta.getLineStartOffset(model.getCurrentPosition());
Rectangle rect = ta.modelToView(line);
ta.scrollRectToVisible(rect);
- } catch (Exception e) {
+ } catch (BadLocationException e) {
// couldn't scroll to line, do nothing
}
@@ -238,4 +239,4 @@ class GlyphGutter extends JComponent {
g.setColor(Color.black);
g.drawPolygon(arrow);
}
-}
\ No newline at end of file
+}
More information about the Libreoffice-commits
mailing list