Skip to content

Commit 216f113

Browse files
author
Alexander Zvegintsev
committed
8344892: beans/finder/MethodFinder.findMethod incorrectly returns null
Reviewed-by: aivanov, serb
1 parent 3230894 commit 216f113

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

src/java.desktop/share/classes/com/sun/beans/finder/MethodFinder.java

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright (c) 2008, 2024, Oracle and/or its affiliates. All rights reserved.
2+
* Copyright (c) 2008, 2025, Oracle and/or its affiliates. All rights reserved.
33
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
44
*
55
* This code is free software; you can redistribute it and/or modify it
@@ -77,8 +77,7 @@ public static Method findMethod(Class<?> type, String name, Class<?>...args) thr
7777
Signature signature = new Signature(type, name, args);
7878

7979
try {
80-
Method method = CACHE.get(signature);
81-
return (method == null) ? method : CACHE.create(signature);
80+
return CACHE.get(signature);
8281
}
8382
catch (SignatureException exception) {
8483
throw exception.toNoSuchMethodException("Method '" + name + "' is not found");

0 commit comments

Comments
 (0)