diff options
author | Noel Grandin <noel@peralex.com> | 2014-12-17 11:00:10 +0200 |
---|---|---|
committer | Noel Grandin <noel@peralex.com> | 2014-12-19 10:41:55 +0200 |
commit | 126eea88e615f3fcc82e081a3dbc7cb85154e575 (patch) | |
tree | 4f8ce134a878014088c27792315da2c19589c379 /nlpsolver | |
parent | cba3956750eebc4a5e2c8f8c7cb48764df18b3cb (diff) |
java: nlpsolver: getPropertyByName was checking the wrong datastructure
Found by PMD
Change-Id: I76d38d71a3379416fe7e5078ef8b121915b26b6b
Diffstat (limited to 'nlpsolver')
-rw-r--r-- | nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java index 1e91448e0a31..30b83922f028 100644 --- a/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java +++ b/nlpsolver/src/com/sun/star/comp/Calc/NLPSolver/BaseNLPSolver.java @@ -460,7 +460,7 @@ public abstract class BaseNLPSolver extends WeakBase } public boolean hasPropertyByName(String property) { - return m_properties.contains(property); + return m_propertyMap.containsKey(property); } // <editor-fold defaultstate="collapsed" desc="Helper functions"> |