jdk/src/share/classes/java/beans/EventHandler.java
changeset 25123 1f70b30da563
parent 21278 ef8a3a2a72f2
child 25777 bb88947b6766
equal deleted inserted replaced
25122:1ecc464c69d2 25123:1f70b30da563
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2013, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2014, Oracle and/or its affiliates. All rights reserved.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     3  * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
     4  *
     4  *
     5  * This code is free software; you can redistribute it and/or modify it
     5  * This code is free software; you can redistribute it and/or modify it
     6  * under the terms of the GNU General Public License version 2 only, as
     6  * under the terms of the GNU General Public License version 2 only, as
     7  * published by the Free Software Foundation.  Oracle designates this
     7  * published by the Free Software Foundation.  Oracle designates this
   444                 return proxy.getClass().getName() + '@' + Integer.toHexString(proxy.hashCode());
   444                 return proxy.getClass().getName() + '@' + Integer.toHexString(proxy.hashCode());
   445             }
   445             }
   446         }
   446         }
   447 
   447 
   448         if (listenerMethodName == null || listenerMethodName.equals(methodName)) {
   448         if (listenerMethodName == null || listenerMethodName.equals(methodName)) {
   449             Class[] argTypes = null;
   449             Class<?>[] argTypes = null;
   450             Object[] newArgs = null;
   450             Object[] newArgs = null;
   451 
   451 
   452             if (eventPropertyName == null) {     // Nullary method.
   452             if (eventPropertyName == null) {     // Nullary method.
   453                 newArgs = new Object[]{};
   453                 newArgs = new Object[]{};
   454                 argTypes = new Class<?>[]{};
   454                 argTypes = new Class<?>[]{};