summaryrefslogtreecommitdiff
path: root/extensions/qa
diff options
context:
space:
mode:
authorNoel Grandin <noel@peralex.com>2013-04-23 09:30:47 +0200
committerFridrich Strba <fridrich@documentfoundation.org>2013-04-24 08:57:57 +0000
commit0c37eeebb0ecbe68fdf8051f627ef1e4929fc5dd (patch)
tree1970990d2a0e650f952bd4f9e229da71cc808828 /extensions/qa
parentf62324cecd93ff2a6019c54b5cd85c83ff672e04 (diff)
Java cleanup, use generic containers where possible
Change-Id: Icd830004de3e121f5b96393e7d7b447775833419 Reviewed-on: https://gerrit.libreoffice.org/3569 Reviewed-by: Fridrich Strba <fridrich@documentfoundation.org> Tested-by: Fridrich Strba <fridrich@documentfoundation.org>
Diffstat (limited to 'extensions/qa')
-rw-r--r--extensions/qa/integration/extensions/MethodHandler.java8
1 files changed, 4 insertions, 4 deletions
diff --git a/extensions/qa/integration/extensions/MethodHandler.java b/extensions/qa/integration/extensions/MethodHandler.java
index 8508dca8fbda..b6259e9b790e 100644
--- a/extensions/qa/integration/extensions/MethodHandler.java
+++ b/extensions/qa/integration/extensions/MethodHandler.java
@@ -31,13 +31,13 @@ public class MethodHandler implements XPropertyHandler
private XIntrospectionAccess m_introspectionAccess;
private XIdlClass m_idlClass;
private XIdlMethod[] m_methods;
- private java.util.HashMap m_methodsHash;
+ private java.util.HashMap<String,XIdlMethod> m_methodsHash;
/** Creates a new instance of MethodHandler */
public MethodHandler( XComponentContext _context )
{
m_context = _context;
- m_methodsHash = new java.util.HashMap();
+ m_methodsHash = new java.util.HashMap<String,XIdlMethod>();
try
{
@@ -169,7 +169,7 @@ public class MethodHandler implements XPropertyHandler
m_introspectionAccess = null;
m_methods = null;
- m_methodsHash = new java.util.HashMap();
+ m_methodsHash = new java.util.HashMap<String,XIdlMethod>();
m_introspectionAccess = m_introspection.inspect( _component );
if ( m_introspectionAccess == null )
@@ -217,7 +217,7 @@ public class MethodHandler implements XPropertyHandler
*/
private XIdlMethod impl_getMethod( String _methodName ) throws UnknownPropertyException
{
- XIdlMethod method = (XIdlMethod)m_methodsHash.get( _methodName );
+ XIdlMethod method = m_methodsHash.get( _methodName );
if ( method == null )
throw new com.sun.star.beans.UnknownPropertyException();