<commit_before>/*
 * Copyright 2002-2006 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.util;

import java.lang.reflect.Method;

/**
 * Strategy for resolving synthetic {@link Method#isBridge bridge Methods} to the {@link Method} being
 * bridged.
 * <p/>
 * Given a synthetic {@link Method#isBridge bridge Method} returns the {@link Method}
 * being bridged. A bridge method may be created by the compiler when extending a parameterized
 * type whose methods have parameterized arguments. During runtime invocation the bridge {@link Method} may
 * be invoked and/or used via reflection. When attempting to locate annotations on {@link Method Methods} it is
 * wise to check for bridge {@link Method Methods} as appropriate and find the bridged {@link Method}.
 * <p/>See <a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.12.4.5">
 * The Java Language Specification</a> for more details on the use of bridge methods.
 *
 * @author <NAME>
 * @since 2.0
 */
public interface BridgeMethodResolver {

	/**
	 * Resolve the supplied {@link Method bridge Method}. It is safe to call this method passing in a non-bridge
	 * {@link Method} instance. In such a case, the supplied {@link Method} instance is returned directly to the caller.
	 * As such callers are <strong>not</strong> required to check for briding before calling this method.
	 * @throws IllegalStateException if no bridged {@link Method} can be found.
	 */
	Method resolveBridgeMethod(Method bridgeMethod);
}<commit_msg>Minor - corrected Javadoc typo ('briding' -> 'bridging')<commit_after>/*
 * Copyright 2002-2006 the original author or authors.
 *
 * Licensed under the Apache License, Version 2.0 (the "License");
 * you may not use this file except in compliance with the License.
 * You may obtain a copy of the License at
 *
 *      http://www.apache.org/licenses/LICENSE-2.0
 *
 * Unless required by applicable law or agreed to in writing, software
 * distributed under the License is distributed on an "AS IS" BASIS,
 * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
 * See the License for the specific language governing permissions and
 * limitations under the License.
 */

package org.springframework.util;

import java.lang.reflect.Method;

/**
 * Strategy for resolving synthetic {@link Method#isBridge bridge Methods} to the
 * {@link Method} being bridged.
 * 
 * <p>Given a synthetic {@link Method#isBridge bridge Method} returns the {@link Method}
 * being bridged. A bridge method may be created by the compiler when extending a
 * parameterized type whose methods have parameterized arguments. During runtime
 * invocation the bridge {@link Method} may be invoked and/or used via reflection.
 * When attempting to locate annotations on {@link Method Methods} it is wise to check
 * for bridge {@link Method Methods} as appropriate and find the bridged {@link Method}.
 * 
 * <p>See <a href="http://java.sun.com/docs/books/jls/third_edition/html/expressions.html#15.12.4.5">
 * The Java Language Specification</a> for more details on the use of bridge methods.
 *
 * @author <NAME>
 * @since 2.0
 */
public interface BridgeMethodResolver {

	/**
	 * Resolve the supplied {@link Method bridge Method}.
     * <p>It is safe to call this method passing in a non-bridge
	 * {@link Method} instance. In such a case, the supplied {@link Method} instance
     * is returned directly to the caller. As such, callers are <strong>not</strong>
     * required to check for bridging before calling this method.
	 * @throws IllegalStateException if no bridged {@link Method} can be found
	 */
	Method resolveBridgeMethod(Method bridgeMethod);
}
{'fraction_non_alphanumeric': 0.08692579505300353, 'fraction_numerical': 0.009422850412249705, 'mean_word_length': 4.060786650774732, 'pattern_counts': {'":': 0, '<': 18, '<?xml version=': 0, '>': 19, 'https://': 0, 'lorem ipsum': 0, 'www.': 2, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5136320', 'n_tokens_mistral': 1138, 'n_tokens_neox': 1069, 'n_words': 532}