summaryrefslogtreecommitdiff
path: root/forms
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-04-25 14:55:32 +0200
committerNoel Grandin <noel@peralex.com>2013-04-26 08:18:40 +0200
commitfb39e719895689a290d3eb910bee994e5ffa2c25 (patch)
treebe58bdffdb299f875f0854ad9c39ea94dce9f3be /forms
parentd2d3e5d2a86cf91a9b38fabe76dc919c77c62852 (diff)
Java cleanup, call static methods statically
Change-Id: Ibe0454d490153f723a58c3c619be7f8d443639c8
Diffstat (limited to 'forms')
-rw-r--r--forms/qa/integration/forms/BooleanValidator.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/forms/qa/integration/forms/BooleanValidator.java b/forms/qa/integration/forms/BooleanValidator.java
index d69ee588390d..dfd3fcaa5eb8 100644
--- a/forms/qa/integration/forms/BooleanValidator.java
+++ b/forms/qa/integration/forms/BooleanValidator.java
@@ -24,23 +24,23 @@
package integration.forms;
+import com.sun.star.uno.AnyConverter;
+
public class BooleanValidator extends integration.forms.ControlValidator
{
private boolean m_preventChecked;
- private com.sun.star.uno.AnyConverter m_converter;
/** Creates a new instance of BooleanValidator */
public BooleanValidator( boolean preventChecked )
{
m_preventChecked = preventChecked;
- m_converter = new com.sun.star.uno.AnyConverter();
}
public String explainInvalid( Object Value )
{
try
{
- if ( m_converter.isVoid( Value ) )
+ if ( AnyConverter.isVoid( Value ) )
return "'indetermined' is not an allowed state";
boolean value = ((Boolean)Value).booleanValue();
if ( m_preventChecked && ( value == true ) )
@@ -57,7 +57,7 @@ public class BooleanValidator extends integration.forms.ControlValidator
{
try
{
- if ( m_converter.isVoid( Value ) )
+ if ( AnyConverter.isVoid( Value ) )
return false;
boolean value = ((Boolean)Value).booleanValue();