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 /sc/qa | |
parent | fdo#80651 replaced oxygen icon and added new tango icon for single page (diff) | |
download | core-bb437029c1e5331bcc3f8fb2fc87837142a52f33.tar.gz core-bb437029c1e5331bcc3f8fb2fc87837142a52f33.zip |
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 'sc/qa')
-rw-r--r-- | sc/qa/complex/dataPilot/_XDataPilotDescriptor.java | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/sc/qa/complex/dataPilot/_XDataPilotDescriptor.java b/sc/qa/complex/dataPilot/_XDataPilotDescriptor.java index 37ec42ac882f..639d8ae85ea9 100644 --- a/sc/qa/complex/dataPilot/_XDataPilotDescriptor.java +++ b/sc/qa/complex/dataPilot/_XDataPilotDescriptor.java @@ -57,7 +57,6 @@ public class _XDataPilotDescriptor { private String sTag = "XDataPilotDescriptor_Tag"; private String fieldsNames[]; - private int fieldsAmount = 0; private int tEnvFieldsAmount = 0; /** @@ -179,7 +178,7 @@ public class _XDataPilotDescriptor { return false; } else {System.out.println("getDataPilotFields returned not Null value -- OK");} - fieldsAmount = IA.getCount(); + int fieldsAmount = IA.getCount(); if (fieldsAmount < tEnvFieldsAmount) { System.out.println("Number of fields is less than number goten by relation."); return false; |