Commit Graph

264 Commits

Author SHA1 Message Date
Tagir Valeev
e44f722d03 Enumeration.hasMoreElements annotated as pure
GitOrigin-RevId: 9c3738e73d93a65bc271ff25a7836bbfed8e7032
2021-03-31 07:47:23 +00:00
Tagir Valeev
1f55c80364 [java-dfa] More precise date ranges; precise return type for toArray()
GitOrigin-RevId: 98c2883ac4048827ab2e0b69cf75cd1c8f22755b
2021-03-31 07:47:22 +00:00
Tagir Valeev
aeb8708357 Semaphor constructor: pure
GitOrigin-RevId: f13bc158338d5ae3b490b15b6452ef86ab453b81
2021-03-30 09:42:21 +00:00
Tagir Valeev
7f950fc4b2 Annotations for executors
GitOrigin-RevId: 285ba60e4b3c0dba5fff5e4071fdd5a960297916
2021-03-29 12:53:15 +00:00
Tagir Valeev
ce8f444bb6 Annotations for java.util.Collections
Removed -> new contracts for checked* and synchronized* because derived collections should not be considered local (see ContractReturnValue.NEW_VALUE.getDfaValue), as their size could be changed from another object (well, there's a hole in our model)

GitOrigin-RevId: f64ef63612d4ae4fdc45d130d4f461f8cc0a6560
2021-03-22 07:11:05 +00:00
Tagir Valeev
52bd61c00a Annotations for CharSequence
GitOrigin-RevId: d28e07808c8edc9604c23d832a013a975ca4848c
2021-03-09 10:26:22 +00:00
Tagir Valeev
125e80de25 [java-dfa] Fixes in locality checks
1. ConstructionUtils.isCollectionConstructor checks whether an argument method is actually a constructor
2. HardcodedContracts.NO_PARAMETER_LEAK_METHODS: add putAll, removeAll, retainAll
3. Purity contract for contains/containsAll

GitOrigin-RevId: 00b68f68ef1c69ab996ff9a04d50ea5228ac629e
2021-03-05 13:31:19 +00:00
Tagir Valeev
df997e8144 String.repeat annotations
GitOrigin-RevId: f17c9a28783aae2d01deb321107c8db5a38fb767
2021-02-12 09:09:52 +00:00
Tagir Valeev
c3efd7eb7d [java-inspections] IDEA-260407 First-class support for Collection.toArray in DFA
GitOrigin-RevId: d11677e1b70f4c2e6117767b22fe707912b606ca
2021-01-27 06:42:37 +00:00
Dmitry.Krasilschikov
832158f43d i18n @Nls external annotation for java.text.DateFormat.format(java.util.Date) - apply to return type
GitOrigin-RevId: 966c0a194cf5f3ffe2ab0a8a322d5a193f66355e
2020-11-25 15:25:44 +00:00
Dmitry.Krasilschikov
e717a479cd i18n @Nls external annotation for java.text.DateFormat.format(java.util.Date)
GitOrigin-RevId: c09d86c6b894078ee8510055e34a76e017c06002
2020-11-24 15:31:24 +00:00
Tagir Valeev
ee0c34979e Range annotation for ArrayList, HashSet and HashMap constructors
GitOrigin-RevId: 60450ea48dd79df75417b9c037d2858930a5129a
2020-11-20 03:05:28 +00:00
Tagir Valeev
12e53f141f [java-dfa] IDEA-255527 Recognize Arrays.copyOf method in dataflow analysis
GitOrigin-RevId: 756cf62aa5d63f8284596047f8b270cac66dde15
2020-11-17 07:32:49 +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
Tagir Valeev
3a7c7a82e2 Class.getResource and getResourceAsStream annotated as Nullable (IDEA-253756)
GitOrigin-RevId: b783c8e8368f4b87289a6a5d9eacbfaade80f23a
2020-10-27 06:32:37 +00:00
Kirill Kirichenko
88cc372186 Fix I18nInspectionsTest
GitOrigin-RevId: f156baf702c3f64c12a98ae78cc29dbfc4c676bb
2020-10-23 13:19:02 +00:00
Tagir Valeev
ccf1adac67 Remove NotNull from java.io.FilterOutputStream constructor parameter
According to JavaDoc, it's valid to create the instance with initial null value

GitOrigin-RevId: 717a09ade7b7804e7759e488a63f52ece4f6e27c
2020-10-21 03:49:13 +00:00
Tagir Valeev
8db9e3f6ab Annotate java.util.zip APIs
GitOrigin-RevId: d77870490b9710d869db2c9f982641884b77e77e
2020-10-21 03:47:51 +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
Tagir Valeev
d6f6990fc3 Remove erroneous external annotation
GitOrigin-RevId: 5dc6b1656abc52e49916be810ff784942b29e5d0
2020-09-08 03:42:54 +00:00
Roman Shevchenko
3abd4f92dd [ui] status bar and tool window code i18n (IDEA-249730)
GitOrigin-RevId: dbf9396c82133e9f7bb06556381768f73b6b10b9
2020-09-07 20:59:30 +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
Tagir Valeev
451770ab7f SuppressWarnings value is annotated as NonNls
GitOrigin-RevId: 765c1209f5bbfc384f3256e2eb0a5eefc90377b9
2020-09-03 06:28:36 +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
Tagir Valeev
c1a00e2079 [java-i18n] External NonNls annotations for Pattern.matches and kotlin.text.Regex
Fixes IDEA-249154 "Hard Coded Strings" Kotlin regular expressions constructer calls should not be reported

GitOrigin-RevId: 00be640e4a8603f1e820477a2ea0af685eadd1e2
2020-08-27 06:15:49 +00:00
Nikolay Chashnikov
e45a8e4023 [jdk annotations] annotate Charset::displayName as @Nls
GitOrigin-RevId: 4120e5b5131f1e210711ad4827b5bc2077823007
2020-08-25 13:41:53 +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
2413f4b174 [jdk annotations] mark ResourceBundle.getString as @Nls
GitOrigin-RevId: 817485d990f2aed3c5eeae6ae318b2aeefde5102
2020-08-20 13:03:35 +00:00
Eldar Abusalimov
b220992219 JDK annotations: (i18n) Annotate "pattern" params of methods of Scanner
GitOrigin-RevId: 3f1e0b5c6a612abf495ce2c2d24a3dd98c41e347
2020-08-20 11:21:42 +00:00
Nikolay Chashnikov
48207b5e29 [jdk annotations] mark scroll pane constants as @NonNls
GitOrigin-RevId: c24d56b20335e7a9283d42d6ab9a6d3b9607fbcc
2020-08-20 09:56:12 +00:00
Nikolay Chashnikov
f44d373edc [jdk annotations] annotate String::replace(char, char) as pure
GitOrigin-RevId: 55442dce1ad89fb500726e901f8263a3e0464519
2020-08-20 08:30:42 +00:00
Tagir Valeev
f9bc29fe1a String.format is marked as pure (we assume that passed objects have pure toString)
GitOrigin-RevId: 0ebde2eb7883f537900a99ce9893614bf0ea33e1
2020-08-19 14:14:32 +00:00
Tagir Valeev
f6bd0ced5e [analysis-impl] i18n
GitOrigin-RevId: 74d7490003686b2efce3a83a1e147b16632946ef
2020-08-19 14:14:28 +00:00
Nikolay Chashnikov
d420cc40a9 [jdk annotations] annotate MessageFormat.format as pure
GitOrigin-RevId: 59f60565421bd7f99abd5cf0926b6ebcbbf4c573
2020-08-19 11:27:12 +00:00
Nikolay Chashnikov
634113ad65 [jdk annotations] add more NonNls annotations
GitOrigin-RevId: 62be983317fb77ff8923ac480f9d38eec468690d
2020-08-18 17:50:56 +00:00
Nikolay Chashnikov
00b10f48f2 [jdk annotations] add more NonNls annotations
GitOrigin-RevId: a69ab7a2acd853ebf555bcc20a2e5f723075fa69
2020-08-18 13:48:47 +00:00
Nikolay Chashnikov
05bba9b505 [jdk annotations] i18n: add more @NonNls annotations to JDK classes
GitOrigin-RevId: 9a36ee754f9b84f536a57fd0de261849282ceb5d
2020-08-17 16:14:39 +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
Anna Kozlova
75195578e4 i18n: NonNls component names
GitOrigin-RevId: ac9ec6890f7cfe88d240f0009bae879fb1d5ce1d
2020-08-17 09:00:06 +00:00
Dmitry Jemerov
4b75ccd3a0 Some more i18n and @NonNls for platform-impl
GitOrigin-RevId: 59fe19a97c532e7b0f4b443998e725c9266a2b91
2020-08-06 18:00:33 +00:00
Dmitry Jemerov
70a6c0c3fd External @NonNls annotations for JDK
GitOrigin-RevId: 777ba699151d113673bd7ae8c56841ddca584aaf
2020-08-05 10:44:28 +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