Commit Graph

3237 Commits

Author SHA1 Message Date
Eugene Zhuravlev
ad62a0b64d null checks to avoid NPE if a processor passes explicit null to a vararg argument (IDEA-264138)
GitOrigin-RevId: 49eda22526184f61bd158ceb96ef9fd968463ae6
2021-03-25 10:54:01 +00:00
Alexey Kudravtsev
5be8a1eca3 cleanup
GitOrigin-RevId: 126399559d93ccfd7bcd64cc030fdb81bc30a668
2021-03-23 12:23:06 +00:00
Alexey Kudravtsev
463c805fc2 make FileTypeAssocTable thread-safe to avoid crashes accessing them from background
GitOrigin-RevId: a26c1fc6570229197fbcccc2b60f40e7fa1947ec
2021-03-22 13:01:49 +00:00
Eugene Zhuravlev
c03a44af2a cleanup
GitOrigin-RevId: 762bd3eae7432a292df665a6503dd26a1283b6ae
2021-03-22 12:17:53 +00:00
Nikolay Chashnikov
099a7a2ab6 [intellij project configuration] add dependency on kotlin-stdlib to util module
This is needed to move kotlin extensions to util module and for example to get rid of dependency on util.ex in workspaceModel.storage (needed for IDEA-252970). Almost all contexts where util module is used (IDE, build process, core part) already include kotlin-stdlib anyway.

GitOrigin-RevId: 5cd8824924439c31ae34aed013bba431b0f3e466
2021-03-19 23:01:49 +00:00
Nikolay Chashnikov
0b59a953a3 [workspace model] don't delete '__external-system-id' attribute from libraries, artifacts and facets under .idea
We need to store additional attributes in xml files to distinguish facets and libraries imported from external systems even if "store externally" option is switched off, in order to properly show warning when user tries to modify them (IDEA-264750) and to simplify code which replaces these entities during reimport. However if we add such attributes in a new version, this will modify configuration files which are shared via VCS, and if user commits these changes, and then somebody opens the project in a previous version of the IDE, it'll remove the attributes. In order to reduce annoyance we can ensure that IDE won't remove these attributes if they are added (but ignore them for now).

GitOrigin-RevId: 7eebab0c774b7374490dcfb315af9893c6bd7c67
2021-03-19 19:59:27 +00:00
Eugene Zhuravlev
1330933f66 dont use static imports
GitOrigin-RevId: 5300ed7681e91df730a30c1e3f581bbfa0d5f9c8
2021-03-18 16:53:01 +00:00
Anna Kozlova
ede95eead0 java: update highest language level
fix testdata which doesn't expect new language features

GitOrigin-RevId: 4a74ebfca3ef2847620ce0428bc46451b1dcfcce
2021-03-17 17:58:02 +00:00
Alexander Bubenchikov
9bd3aa32c8 Fix build on WSL - IDEA-264058
Fix BuildManager and WslBuildCommandLineBuilder

GitOrigin-RevId: aba75dc4a9c7d6c33f8aa96a83d5505304e5e0b2
2021-03-11 12:24:24 +00:00
Alexander Bubenchikov
b7a5968720 Fix build on WSL when libraries are stored using relative path to PROJECT_DIR
GitOrigin-RevId: 6e5f45901f620844958b3b5676d94c9f7b9b6895
2021-03-11 12:24:23 +00:00
Andrey.Cherkasov
2be866d15c Add the "Redundant File object creation" inspection to zero-tolerance profile
GitOrigin-RevId: 6c4ae26aab7254c7bc773d06720ec57480b962f4
2021-03-01 04:49:49 +00:00
Eugene Zhuravlev
adfe648216 affect lambda instantiations when an abstract method in a SAM interface becomes non-abstract (IDEA-263109)
GitOrigin-RevId: 882c034d0cd6afbc297dca1e59e940dd90f8c5a4
2021-02-27 14:52:58 +00:00
Alexey Kudravtsev
36d7e30a77 cleanup
GitOrigin-RevId: 1dc4223c8cba01b590713263a3ea8add0e8b1dda
2021-02-25 16:27:05 +00:00
Alexey Kudravtsev
48256f4589 deprecate StringUtil.createToStringFunction
GitOrigin-RevId: 0d923d13ffbd7d8324df300ef7ac37f2e1f6e60f
2021-02-24 02:01:04 +00:00
Eugene Zhuravlev
606f2922eb avoid unnecessary conversions
GitOrigin-RevId: eeb92faf21ac0b32732653649ec099e7658925af
2021-02-18 12:32:27 +00:00
Eugene Zhuravlev
3da0d1a0f5 recompile lambda instantiations on SAM interface changes (IDEA-261683)
GitOrigin-RevId: 3d3407ac4af0efb25681a6678ee5eb11594ace41
2021-02-17 17:05:40 +00:00
Nikolay Chashnikov
2125041499 [java] deprecation: add @ScheduledForRemoval annotation to deprecated elements (IDEA-259329)
GitOrigin-RevId: 9e43d4b84ea8860d2caf2928e6cd826597e67611
2021-02-12 16:33:10 +00:00
Nikolay Chashnikov
5113d53ddb [jps build] add kotlin-stdlib to build process classpath
This is needed to be able to use workspace model inside build process (IDEA-252970).

GitOrigin-RevId: 51c9b5be6998463cbc3be260adda1b84c01004a2
2021-02-10 09:46:25 +00:00
Eugene Petrenko
703b4643cd jdk-detector: support JetBrains Runtime detection
GitOrigin-RevId: 8f5b799ee34bcd7244ba7d59c0eb4dc7f643a67b
2021-02-09 17:45:26 +00:00
Vladimir Krivosheev
99528c07c6 cleanup
GitOrigin-RevId: 4bed85d2ab8d0a138370632f14266944d2766e33
2021-02-03 20:06:42 +00:00
Tagir Valeev
61fb94acd0 Remove casts by narrowing for-each loop parameter type
+ other trivial warnings fixed

GitOrigin-RevId: 42314f8e8ea8a9982e009f8a7f9ad413ebfc4893
2021-02-03 02:25:25 +00:00
Alexander Zolotov
6a07ea958d [jps] convert jdk version detector to NIO
GitOrigin-RevId: b47c23dc26d35aa2106a68f699d98707b1704dff
2021-02-02 21:41:30 +00:00
Eugene Zhuravlev
ff3da50922 LazyClassLoader: do not rely on URLClassLoader internals (IDEA-260719)
GitOrigin-RevId: 29e89b5ef9508157a47a8f2a84f8bdfdc7588b02
2021-02-02 08:00:07 +00:00
Alexey Kudravtsev
bb440db5b2 Fix method signatures with wildcards for well-known functional interfaces and collections
GitOrigin-RevId: 0b56f672e97d2068a19aef430c9cec7b636279fb
2021-02-01 13:48:17 +00:00
Roman Shevchenko
13f37f5dfc Cleanup (consolidating file filters; warnings; formatting)
GitOrigin-RevId: 532a298e81f622147c8c3f75d4e72789926d9267
2021-01-29 17:09:32 +00:00
Tagir Valeev
9ce3b0c236 Pair.comparingByFirst, comparingBySecond
GitOrigin-RevId: ca92393f4780a1bb186d0ffee4e5c445f843c25f
2021-01-28 05:40:23 +00:00
Vladimir Krivosheev
99cc95ff68 cleanup
GitOrigin-RevId: a6e02daa32397b805eb1a1aa9c9855f092548eb6
2021-01-22 20:58:21 +00:00
Anna Kozlova
cfa826f9b6 java 11 migration: explicit -> diamond for anonymous classes
GitOrigin-RevId: ce15f37f8882fb7915cf5c8b62e3cc4601a5cc76
2021-01-17 11:16:51 +00:00
Nikolay Chashnikov
84cc732603 [JPS model] API cleanup: remove unused API which was deprecated for a long time (IDEA-259329)
GitOrigin-RevId: d21be8d63a974d9709cff6b275cbc508cf7a0b12
2021-01-15 22:21:11 +00:00
Nikolay Chashnikov
ff0251e724 [JPS build] API cleanup: remove unused API which was deprecated for a long time (IDEA-259329)
GitOrigin-RevId: c0e347bdce3fe10134eaa87b756d96edc43e8f89
2021-01-15 22:21:09 +00:00
Roman Shevchenko
aacf70f39b Cleanup (warnings; formatting)
GitOrigin-RevId: 59c111de9a47932d85faf16d2c06deeed7f9b16c
2021-01-08 12:39:14 +00:00
Roman Shevchenko
ea445ba366 Cleanup (IDEA-CR-70012)
(closing directory streams; dropping unnecessary conversions; migrating more methods to NIO2)

GitOrigin-RevId: 9d9f3cc4756aaca97d2a7a9618876f5093a10d58
2021-01-08 12:33:18 +00:00
Roman Shevchenko
96ca1cdb3a [tests] fixing JDK version detector behavior on incomplete macOS paths
GitOrigin-RevId: c9c931a08dc467d59cc74e8ec4d184e033a1020c
2021-01-04 13:18:28 +00:00
Roman Shevchenko
b0c805104e [tests] more accurate CPU arch detection (JPS)
GitOrigin-RevId: ba8f1a7b1addc67e660b1c9beb3631073fc41f5b
2020-12-30 22:04:16 +00:00
Alexander Zolotov
43254b5635 [java] migrate Java Sdk support to NIO
GitOrigin-RevId: 8ff4c3280d2ed84e46c8fba53746975850bc03b3
2020-12-30 20:38:16 +00:00
Nikolay Chashnikov
4a2bcbef8c [jps model] fix loading library configuration with excluded roots
Before excluded roots were incorrectly loaded as classes roots leading to duplicating entries in compilation classpath.

GitOrigin-RevId: 94a574676da8124475c6bd3b4b0816e41cfa3ab5
2020-12-23 17:52:32 +00:00
Eugene Zhuravlev
f704639c2d enable unified unwrapping for wrappers not implementing WrapperDelegateAccessor
GitOrigin-RevId: a9a837715a0851a5fa4b6e86d0ef9ab5e46501c0
2020-12-23 16:56:26 +00:00
Eugene Zhuravlev
fa6004c81b enhanced diagnostic with fix suggestion for problems in the incremental AnnotationProcessingEnvironment (IDEA-256707)
GitOrigin-RevId: 20f4bbb042d4a06272b761c8b69657b980a2fb5a
2020-12-23 11:25:18 +00:00
Eugene Zhuravlev
a054582d5d use specialized wrap method for all DynamicWrapper subclasses
GitOrigin-RevId: 4841d104a117661204082f8ff9ee9418285c26c1
2020-12-21 11:05:14 +00:00
Eugene Zhuravlev
bf5c0ecfa0 avoid NPE logging (mentioned in IDEA-257871)
GitOrigin-RevId: b372412c04dd91e88bbd43d665d52815541a04b1
2020-12-17 12:15:40 +00:00
Anna Kozlova
5fe6f1b2d9 temp workaround to start compiler on java 16+
after JEP 396: Strongly Encapsulate JDK Internals by Default is incorporated, no reflection access by default is possible

GitOrigin-RevId: c09ce36aa29af6552dc47dd4b45726ec79a77b73
2020-12-15 18:05:12 +00:00
Anna Kozlova
fd17a8bb75 language level 16, remove language level 14_preview (IDEA-257409)
GitOrigin-RevId: 1f9626ba04ffd9588b0cf9b8a9f699faa613359b
2020-12-14 20:59:58 +00:00
Eugene Zhuravlev
e37e0678e5 keep internal inEmpty() calls for optimization purposes lazy
GitOrigin-RevId: 4af1d4b261cd814a353c9a895544d5bbc50c991b
2020-12-09 09:45:56 +00:00
Vladimir Krivosheev
c7b2d1b087 simplify — remove extra not need disallowLock (use allowLock(false) instead), reduce Paths.get calls
GitOrigin-RevId: eeb9bdfc1c84f6b22421287b059f2c04e6406b9d
2020-12-08 08:10:53 +00:00
Eugene Zhuravlev
205dfea3f3 process constants non-incrementally if non-javac compiler (e.g. ecj) is used (IDEA-250524)
GitOrigin-RevId: 8ce5335fdc6b7d774611242e3195046af6a31ed0
2020-12-04 13:38:17 +00:00
Eugene Zhuravlev
809200f825 annotation processing "proc:only" mode support (IDEA-253719)
GitOrigin-RevId: 24a2dc446de47bf223b83329a0bc1a87992306e7
2020-12-02 12:51:32 +00:00
Eugene Zhuravlev
fcb5285922 always use non-blocking output reading mode for forked javac processes (relates to IDEA-210263)
GitOrigin-RevId: 15231b3dfd6f052f517132198dc9dea64b3b3968
2020-11-30 10:51:23 +00:00
Alexey Kudravtsev
91d295abbd notnull
GitOrigin-RevId: eabb7357d0b6ab91f56466bd78a00cf9cc849221
2020-11-29 22:40:06 +00:00
Dmitry Jemerov
b5c75ebca9 Fix path remapping via wslpath (IDEA-CR-69177)
GitOrigin-RevId: 6540ceb1e77cd784e7ad0be462704fcdb66ec32e
2020-11-26 18:53:09 +00:00
Yann Cébron
4dbbff2908 fix "Declaration has Javadoc problems"
GitOrigin-RevId: dbc4a495e1794d0861dee4f24af141aba7b76cc9
2020-11-25 15:34:38 +00:00