We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
any time it finds an array
diff --git a/findbugs/src/java/edu/umd/cs/findbugs/detect/StaticCalendarDetector.java b/findbugs/src/java/edu/umd/cs/findbugs/detect/StaticCalendarDetector.java index 6c04abe..e4441fb 100644 --- a/findbugs/src/java/edu/umd/cs/findbugs/detect/StaticCalendarDetector.java +++ b/findbugs/src/java/edu/umd/cs/findbugs/detect/StaticCalendarDetector.java @@ -142,18 +142,19 @@ public class StaticCalendarDetector extends OpcodeStackDetector { sawDateClass = true; break; } - try { - ClassDescriptor cDesc = DescriptorFactory.createClassDescriptor(className); - if (subtypes2.isSubtype(cDesc, calendarType) || subtypes2.isSubtype(cDesc, dateFormatType)) { - sawDateClass = true; - break; + if (!className.startsWith("[")) { + try { + ClassDescriptor cDesc = DescriptorFactory.createClassDescriptor(className); + + if (subtypes2.isSubtype(cDesc, calendarType) || subtypes2.isSubtype(cDesc, dateFormatType)) { + sawDateClass = true; + break; + } + } catch (ClassNotFoundException e) { + reporter.reportMissingClass(e); } - } catch (ClassNotFoundException e) { - reporter.reportMissingClass(e); } - - } } }
The text was updated successfully, but these errors were encountered:
Avoid ClassNotFoundException when finding arrays
3069a30
- This is taken from findbugsproject/findbugs#122 thanks to @mebigfatguy
Avoid ClassNotFoundException when finding arrays (#76)
b188fc8
This project continues development in a new home: https://github.com/spotbugs/spotbugs/
Sorry, something went wrong.
No branches or pull requests
any time it finds an array
patch
The text was updated successfully, but these errors were encountered: