Commit Graph

53 Commits

Author SHA1 Message Date
Alexey Kudravtsev
7a279cde28 notnull some swing methods
GitOrigin-RevId: 07b31df54906e62d6380c27b48291fe2d67c970f
2023-02-23 15:00:39 +00:00
Bas Leijdekkers
fc0f9fd6fa Annotate JPassWordField.setText() argument as @NonNls
GitOrigin-RevId: a54363b3d51e566eff8e268e4f5f733f96720bdd
2021-12-14 08:32:51 +00:00
Ivan Semenov
e582c728e0 [jdk-annotations] do not allow nulls in StyleSheet.addStyleSheet and StyleSheet.removeStyleSheet
Adding null stylesheet throws NPE later when the rule is retrieved in StyleSheet.createResolvedStyle

This is not an issue in JBR, but it is in coretto, so debugging could be a huge pain

IJ-MR-17903

GitOrigin-RevId: 66efd3936c178903ff9dcd11594ecde115d29b3c
2021-11-29 15:01:30 +00:00
Sergey Malenkov
51f94218c1 Fix I18nInspectionsTest for DefaultTreeUI.java and DialogWrapper.java
GitOrigin-RevId: e90e207039305c2e51a33d91915e6091bdedf414
2021-07-06 20:57:00 +00:00
Dmitry Jemerov
312dd6a347 Annotate propertyName parameter in firePropertyChange as @NonNls
GitOrigin-RevId: 3b0ffa106ee86f2d2c09d5549c65e91e98e95013
2021-06-30 16:56:13 +00:00
Tagir Valeev
d39f35d50e Range for TreePath.getPathCount
GitOrigin-RevId: 4498ee4913c8ec32fb91d3f7ce3c8cc2bbd85cfa
2021-05-24 07:24:17 +00:00
Nikolay Chashnikov
658e40449b [jdk annotations] annotate parameters of methods in AccessibleContext with @Nls
GitOrigin-RevId: aa319e11f201995c516bfc9f2df11fdf4ae4e80d
2020-11-06 09:13:14 +00:00
Nikolay Chashnikov
121797640b [jdk annotations] add @Nls annotation to fields in AccessibleContext
GitOrigin-RevId: 51107e03e6875b512651333fc4526958d700a2a5
2020-10-28 16:08:43 +00:00
Kirill Kirichenko
88cc372186 Fix I18nInspectionsTest
GitOrigin-RevId: f156baf702c3f64c12a98ae78cc29dbfc4c676bb
2020-10-23 13:19:02 +00:00
Nikolay Chashnikov
0c2eb32e94 [jdk annotations] add @NonNls annotations to some Swing elements
To fix "Hard coded string" warnings in intellij sources.

GitOrigin-RevId: 5972d9ed079824c4fd68c840857e8b77c890203c
2020-10-16 14:10:24 +00:00
Sergey Malenkov
0cef12ff11 IDEA-249457: fix localization in LafManagerImpl
GitOrigin-RevId: e93e2e0925bb62ef36f7772aeabf998c7a6a6dc1
2020-09-07 19:20:59 +00:00
Konstantin Kolosovsky
db7e6b39fa [jdk annotations] Restore external annotations for JAXB
For JDK < 11 versions where JAXB is part of JDK

40c6919494b138bb21c095902e0d8822033eedf0 follow-up

GitOrigin-RevId: c74b0a8d6dc9bce5bd869b377e531ff159f71025
2020-09-04 16:05:22 +00:00
Konstantin Kolosovsky
132857755b Configure external annotations for "jaxb-api" library
GitOrigin-RevId: 40c6919494b138bb21c095902e0d8822033eedf0
2020-09-02 19:49:42 +00:00
Nikolay Chashnikov
a4a9c7b95c [jdk annotations] annotated get/setActionCommand with @NonNls
GitOrigin-RevId: 498f5b5eb0ed7f0d1545a27c5de2ffbd8cc23952
2020-09-01 17:35:50 +00:00
Nikolay Chashnikov
3186d3e17e [jdk annotations] annotate Diagnostic::getMessage as @Nls
GitOrigin-RevId: 7fcb0ada630a8d5527bda2a038e5d62c38f74118
2020-08-27 08:34:12 +00:00
Anna Kozlova
c8edf8fc55 i18n: ensure table columns are localized
IDEA-CR-66229

GitOrigin-RevId: c8dbc070db89659739901c6791e99fb02e13c1a8
2020-08-21 20:55:01 +00:00
Anna Kozlova
b8a959b64e i18n: provide external @Nls for column name
as we don't want to propagate @ColumnName annotation, @Nls at least would signal that some localization is required

GitOrigin-RevId: 5bd7fd7022b5245f48c0f03b3ffc9acdd60f1863
2020-08-21 08:18:59 +00:00
Nikolay Chashnikov
ef64522fe4 [jdk annotations] mark path arguments of ImageIcon as @NonNls
GitOrigin-RevId: bd110960e3cbe72bd88297c58377d6f04c6200fc
2020-08-20 17:35:00 +00:00
Nikolay Chashnikov
48207b5e29 [jdk annotations] mark scroll pane constants as @NonNls
GitOrigin-RevId: c24d56b20335e7a9283d42d6ab9a6d3b9607fbcc
2020-08-20 09:56:12 +00:00
Tagir Valeev
f6bd0ced5e [analysis-impl] i18n
GitOrigin-RevId: 74d7490003686b2efce3a83a1e147b16632946ef
2020-08-19 14:14:28 +00:00
Nikolay Chashnikov
06c319c62e [jdk annotations] i18n: add more @NonNls annotations to JDK classes
GitOrigin-RevId: 2fb42ec7d639a2a3ff13fcbb784152e7342eaa93
2020-08-17 15:11:14 +00:00
Tagir Valeev
db881b2c99 HyperlinkEvent#getDescription NonNls
GitOrigin-RevId: 563b8994eedede43832862ef34cb79ca3004f308
2020-07-22 05:58:25 +00:00
Tagir Valeev
1814678893 NonNls annotations
GitOrigin-RevId: 998ee2613c46663f1eb5817cc322e445d8ffa2cc
2020-07-21 10:03:08 +00:00
Tagir Valeev
e1f8f84dee Swing putValue key NonNls
GitOrigin-RevId: f1465c8904f5b595b3ddf0dc01c363772c3fba89
2020-07-17 10:43:23 +00:00
Tagir Valeev
8f298d17b0 UIDefaults class NonNls
GitOrigin-RevId: ca975bf73516d8fa0fcabde6c3c2d70f6ed9512c
2020-05-12 09:09:27 +00:00
Tagir Valeev
b75cdc9f06 Annotations for javax.annotation.processing.Generated
GitOrigin-RevId: 35779288edacf99db56ac8c00e9c7d63ede0f071
2020-04-07 08:33:35 +00:00
Tagir Valeev
51b55f577f @NonNls for JAXB annotations
GitOrigin-RevId: 4ab1185d08fdcc3992a22fd19df0864aade78e9f
2020-04-03 11:11:36 +00:00
nik
948dc832ba [i18n] add @NonNls annotations for some methods in platform modules and JDK
To reduce number of false positives of "Hardcoded string literal" inspection without "report Nls-only" option and to give a hint that some values aren't shown to users.

GitOrigin-RevId: d4f5906ca5c924127ee94130766abec9cc79695a
2020-03-04 11:34:45 +00:00
nik
fa7250b61e [IntelliJ project configuration] mark parameter of LookAndFeel::installProperty as @NonNls
GitOrigin-RevId: 89bf31410baae372a5eeb24bec23be60090cfe01
2020-02-27 13:31:51 +00:00
nik
327ee890ab [IntelliJ project configuration] annotate JEditorPane::setContentType as NonNls
GitOrigin-RevId: efa59cb3872c88d15989d40fd42ed882ef943dd4
2020-02-27 09:33:10 +00:00
nik
1a8ba3a24b [IntelliJ project configuration] fix format of external annotations for javax.swing
This is needed to ensure that applying 'Annotate' quickfix won't change unrelated items.

GitOrigin-RevId: 3735092ffd41ee453e64e91ab8f7c310a7097a92
2020-02-27 09:33:10 +00:00
Anna.Kozlova
d775a4c5dc disable i18n for javax.swing.UIDefaults#put keys
GitOrigin-RevId: fcc7e2cede2189e2b974e0e2d054ccebf92de04e
2020-02-20 11:46:48 +00:00
Anna Kozlova
795a1e9827 i18n: treat all swing Strings as @Nls
GitOrigin-RevId: c2baf3986b32bc2651313119a68c8188fbc1847a
2020-01-09 16:10:01 +00:00
Aleksey Pivovarov
65ad833a30 Annotate javax.swing.JTree#getSelectionPath as @Nullable
GitOrigin-RevId: 56be02ad31e412e92f66e4dd1b9ff716f1890210
2019-07-02 06:52:16 +03:00
Alexey Kudravtsev
c0c34616a8 notnull 2019-01-21 18:55:48 +03:00
Alexey Kudravtsev
f6002904a7 IDEA-186767 Magic constant: false positive for JFrame.EXIT_ON_CLOSE 2018-03-01 14:09:00 +03:00
Anna.Kozlova
9954d6cfd0 Action.NAME can be presented to the user so should be i18n (IDEA-171883) 2017-04-24 17:24:13 +02:00
Alexey Kudravtsev
5d30295c99 moved some JDK annotations from strange hidden place to the standard jdkAnnotations,
fixed crazy discrepancies in method external signatures
2017-04-18 14:51:07 +03:00
Alexey Kudravtsev
94a666a0df annotations.xml syntax checker 2016-11-14 15:10:42 +03:00
Alexey Kudravtsev
09e0f2dc80 notnull JOptionPane.getRootFrame 2016-05-12 17:28:50 +03:00
Kirill Likhodedov
643869d9d0 Annotate JTree#getSelectionRows() as Nullable 2014-10-02 14:58:56 +04:00
Alexey Kudravtsev
1f869df8d4 notnull 2013-12-26 12:54:33 +04:00
Alexey Kudravtsev
31533f0dfe annotations 2013-01-18 15:09:41 +04:00
Alexey Kudravtsev
2bca579904 sorted signatures 2012-12-26 15:16:12 +04:00
Alexey Kudravtsev
cdc4d5430e annotations 2012-12-20 15:51:32 +04:00
Alexey Kudravtsev
045edfccf8 annotations 2012-12-03 14:36:49 +04:00
Alexey Kudravtsev
e62c09ce2a annotations 2012-11-07 18:35:01 +04:00
Alexey Kudravtsev
76dfe1912e notnull 2012-11-06 17:14:08 +04:00
Alexey Kudravtsev
7b78474e69 annotations, listener leak 2012-10-30 15:14:54 +04:00
Alexey Kudravtsev
4edd2978d5 annotations 2012-10-12 13:02:20 +04:00