summaryrefslogtreecommitdiff
path: root/sc/qa/complex
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2014-11-12 09:55:57 +0200
committerNoel Grandin <noelgrandin@gmail.com>2014-11-12 11:03:29 +0000
commitbb437029c1e5331bcc3f8fb2fc87837142a52f33 (patch)
tree56bde4059792a5284e90ae3b10ee4388cc913a54 /sc/qa/complex
parent84f7f412bfc9e18b1ff8b133ceda7757eae28c36 (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 'sc/qa/complex')
-rw-r--r--sc/qa/complex/dataPilot/_XDataPilotDescriptor.java3
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;