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 /nlpsolver/ThirdParty | |
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 'nlpsolver/ThirdParty')
-rw-r--r-- | nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/DEPSAgent.java | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/DEPSAgent.java b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/DEPSAgent.java index a67fe77e12c0..58b7e5e60c31 100644 --- a/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/DEPSAgent.java +++ b/nlpsolver/ThirdParty/EvolutionarySolver/src/net/adaptivebox/deps/DEPSAgent.java @@ -51,8 +51,6 @@ public class DEPSAgent implements ILibEngine { //temp variable private AbsGTBehavior selectGTBehavior; - //The referred library - private Library socialLib; //the own memory: store the point that generated in old learning cycle private BasicPoint pold_t; //the own memory: store the point that generated in last learning cycle @@ -66,9 +64,8 @@ public class DEPSAgent implements ILibEngine { public double switchP = 0.5; public void setLibrary(Library lib) { - socialLib = lib; - deGTBehavior.setLibrary(socialLib); - psGTBehavior.setLibrary(socialLib); + deGTBehavior.setLibrary(lib); + psGTBehavior.setLibrary(lib); } public void setProblemEncoder(ProblemEncoder encoder) { |