jdk/src/share/classes/com/sun/beans/finder/MethodFinder.java
changeset 11088 86d4baf04e15
parent 5947 0e6f2837eeca
child 13356 89a34c00fd8c
equal deleted inserted replaced
11087:3217e8ad1d4a 11088:86d4baf04e15
     1 /*
     1 /*
     2  * Copyright (c) 2008, 2010, Oracle and/or its affiliates. All rights reserved.
     2  * Copyright (c) 2008, 2011, 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
   188         this.name = name;
   188         this.name = name;
   189     }
   189     }
   190 
   190 
   191     /**
   191     /**
   192      * Returns an array of {@code Class} objects
   192      * Returns an array of {@code Class} objects
   193      * that represent the formal parameter types of the method
   193      * that represent the formal parameter types of the method.
   194      * Returns an empty array if the method takes no parameters.
   194      * Returns an empty array if the method takes no parameters.
   195      *
   195      *
   196      * @param method  the object that represents method
   196      * @param method  the object that represents method
   197      * @return the parameter types of the method
   197      * @return the parameter types of the method
   198      */
   198      */
   224      * @return {@code true} if the method is valid,
   224      * @return {@code true} if the method is valid,
   225      *         {@code false} otherwise
   225      *         {@code false} otherwise
   226      */
   226      */
   227     @Override
   227     @Override
   228     protected boolean isValid(Method method) {
   228     protected boolean isValid(Method method) {
   229         return Modifier.isPublic(method.getModifiers()) && method.getName().equals(this.name);
   229         return !method.isBridge() && Modifier.isPublic(method.getModifiers()) && method.getName().equals(this.name);
   230     }
   230     }
   231 }
   231 }