diff options
author | Noel Grandin <noel@peralex.com> | 2014-11-12 09:55:57 +0200 |
---|---|---|
committer | Noel Grandin <noelgrandin@gmail.com> | 2014-11-12 11:03:29 +0000 |
commit | bb437029c1e5331bcc3f8fb2fc87837142a52f33 (patch) | |
tree | 56bde4059792a5284e90ae3b10ee4388cc913a54 /forms/qa/org | |
parent | 84f7f412bfc9e18b1ff8b133ceda7757eae28c36 (diff) |
java: convert fields to local variables where possible
found by PMD
Change-Id: I05b45382b8fb1b734657ce9421a20e6ef6fbe542
Reviewed-on: https://gerrit.libreoffice.org/12376
Tested-by: LibreOffice gerrit bot <gerrit@libreoffice.org>
Reviewed-by: Noel Grandin <noelgrandin@gmail.com>
Diffstat (limited to 'forms/qa/org')
-rw-r--r-- | forms/qa/org/openoffice/xforms/XMLDocument.java | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/forms/qa/org/openoffice/xforms/XMLDocument.java b/forms/qa/org/openoffice/xforms/XMLDocument.java index e2236767a346..d16ab5bd6047 100644 --- a/forms/qa/org/openoffice/xforms/XMLDocument.java +++ b/forms/qa/org/openoffice/xforms/XMLDocument.java @@ -32,7 +32,6 @@ import integration.forms.DocumentType; public class XMLDocument extends integration.forms.DocumentHelper { - private XFormsSupplier m_formsSupplier; private XNameContainer m_forms; /* ------------------------------------------------------------------ */ @@ -52,13 +51,13 @@ public class XMLDocument extends integration.forms.DocumentHelper /* ------------------------------------------------------------------ */ private void impl_initialize( XComponent _document ) { - m_formsSupplier = UnoRuntime.queryInterface( XFormsSupplier.class, + XFormsSupplier formsSupplier = UnoRuntime.queryInterface( XFormsSupplier.class, _document ); - if ( m_formsSupplier == null ) + if ( formsSupplier == null ) throw new IllegalArgumentException(); - m_forms = m_formsSupplier.getXForms(); + m_forms = formsSupplier.getXForms(); } /* ------------------------------------------------------------------ */ |