src/java.desktop/share/classes/java/beans/EventHandler.java
changeset 54871 c2e4aef5edf2
parent 47216 71c04702a3d5
equal deleted inserted replaced
54870:0d49e7c0b4fa 54871:c2e4aef5edf2
     1 /*
     1 /*
     2  * Copyright (c) 2000, 2016, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2000, 2019, 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
   369     public String getListenerMethodName()  {
   369     public String getListenerMethodName()  {
   370         return listenerMethodName;
   370         return listenerMethodName;
   371     }
   371     }
   372 
   372 
   373     private Object applyGetters(Object target, String getters) {
   373     private Object applyGetters(Object target, String getters) {
   374         if (getters == null || getters.equals("")) {
   374         if (getters == null || getters.isEmpty()) {
   375             return target;
   375             return target;
   376         }
   376         }
   377         int firstDot = getters.indexOf('.');
   377         int firstDot = getters.indexOf('.');
   378         if (firstDot == -1) {
   378         if (firstDot == -1) {
   379             firstDot = getters.length();
   379             firstDot = getters.length();