Commit Graph
113 Commits
Author SHA1 Message Date
Dmitry Batkovich 816f4f2b0e atomic type migration: remove default argument for atomic constructor call 2017-09-08 16:09:48 +03:00
Tagir Valeev f9c4ceda7c AtomicConversionRule: also support non-void context for updateAndGet (IDEA-CR-24025) 2017-08-22 16:56:37 +07:00
Tagir Valeev 80e9c0f026 Atomic conversion: support in void lambdas 2017-08-22 10:14:43 +07:00
Dmitry Batkovich ea59c0cbb6 convert to atomic: add get() call for atomic getter IDEA-176869 2017-08-02 12:43:25 +03:00
Dmitry Batkovich c1cf67610f guava type migration: support a case when migration chain is an argument of read-only method IDEA-176444 2017-07-24 15:37:52 +03:00
Dmitry Batkovich 7a9c33a5c8 type migration: use deeply immediate migration type copy instead of original one; attempt #2 2017-06-16 15:50:20 +03:00
Maxim.Mossienko 7387ee525b update tests and testdata to reflect newer mock jdk 1.7 2017-06-13 15:09:42 +02:00
Dmitry Batkovich 46c37550c0 type migration: add a test for IDEA-173791 2017-06-08 17:46:51 +03:00
Dmitry Batkovich 2066338d72 type migration: convert to atomic / convert to thread local should use refactoring instead of manual conversion 2017-06-08 17:03:20 +03:00
Dmitry Batkovich 781137ab58 move test for java 6 thread local to separated class 2017-06-06 14:10:53 +03:00
Dmitry Batkovich 2ede55bd8c do not fail on int,byte -> atomic long type migration 2017-06-06 13:55:58 +03:00
Dmitry Batkovich 57b939eef4 convert to atomic: add rule for array.length 2017-06-05 22:29:21 +03:00
Dmitry Batkovich a43c830373 convert to threadlocal: convert initializer to modern ThreadLocal.withInitial if java version >= 8 2017-06-05 19:36:58 +03:00
Dmitry Batkovich fc44d1a3e4 convert to threadlocal: fix variable access inside thread local initializer (IDEA-173748) 2017-06-05 19:24:36 +03:00
Dmitry Batkovich 32e3b8b73a convert to threadlocal: do not create initializer if variable was final (IDEA-173748) 2017-06-05 13:42:30 +03:00
Dmitry Batkovich d38f680fd6 type migration: fix type parameter migration for invalid code EA-100944 2017-05-15 12:56:11 +03:00
Alexey Kudravtsev 920d5b4fba removed default file header, because it adds no information but subtracts attention and space 2017-05-11 13:39:07 +03:00
Dmitry Batkovich c5b9856a8e unbomb guava inspection tests 2017-04-03 12:45:16 +03:00
Roman Shevchenko 5e5c14c57e [java] raises language level to Java 9 2017-03-24 18:35:57 +01:00
Dmitry Batkovich 5f5c24064b type migration: fix AIOOBE for method with generic varargs migration (EA-87127) update (IDEA-CR-19211) 2017-03-22 11:32:21 +03:00
Dmitry Batkovich 3e80efb857 type migration: fix AIOOBE for method with generic varargs migration (EA-87127) 2017-03-13 16:53:06 +03:00
Bas Leijdekkers e21c73d723 fix test data 2017-02-09 17:32:08 +01:00
Dmitry Batkovich acebed8e8f guava type migration: improve template for guava's Optional#asSet() (IDEA-167813) 2017-02-09 13:13:54 +03:00
Dmitry Batkovich db79567112 assertion -> assertThat inspection: fix template for assertFalse (IDEA-167545) 2017-02-09 10:38:15 +03:00
Dmitry Batkovich be230d90bf guava type migration: fix stack overflow when lambda implements guava & java function EA-92353 2017-01-20 11:52:41 +03:00
Dmitry Batkovich 278ceaca88 guava type migration: fix for filter(Class<T>) migration (should add cast to new type) IDEA-165420 2016-12-21 13:24:33 +03:00
Anna.Kozlova 81e49151ff don't insert braces around single lambda parameter 2016-12-06 12:35:48 +01:00
Dmitry Batkovich 0f30ce7977 migrate to matchers inspection: fix for migration of "assertFalse(collection.contains(item));" statement (IDEA-163310) 2016-11-07 16:51:18 +03:00
Dmitry Batkovich 4d8ba2542a atomic type migration: handle properly statement-chains like "int i = 0; int j = i + 1;" 2016-09-27 17:14:27 +03:00
Dmitry Batkovich 12d01ec025 type migration to atomic: fix test data to satisfy new more clear migration 2016-09-23 19:53:37 +03:00
Dmitry Batkovich 23731ae9ad java convert to atomic intention: assignment conversion fix IDEA-161639 2016-09-23 15:22:26 +03:00
Dmitry Batkovich eb9caf6180 guava inspection: conversion for FluentIterable.last (IDEA-160221) 2016-08-26 09:28:56 +03:00
Dmitry Batkovich 63e73c1fe8 type migration: to void: remove unused variables in simple cases IDEA-158196 2016-08-16 10:08:35 +03:00
Dmitry Batkovich 6af0c778f6 MigrateAssertToMatcherAssert inspection: swap actual and expected parameters to preserve proper order + fix for statically imported assertion method IDEA-159137 2016-08-05 13:32:11 +03:00
Alexey Kudravtsev db48c64473 use mockJdk18 by default in LightCodeInsightTestCase; remove dependency on swing/net classes in some tests 2016-07-20 15:47:18 +03:00
Dmitry Batkovich 9732e343e7 guava type migration: convert function variable that defined as method reference IDEA-152415 2016-07-15 14:56:02 +03:00
Dmitry Batkovich 7eaa505a9e type migration: multiple variable declaration in single statement migration IDEA-154937 2016-07-15 14:22:44 +03:00
Dmitry Batkovich f9626d8657 type migration: produce more compilable code on method return type migration to void IDEA-158196 2016-07-07 13:47:51 +03:00
Anna Kozlova 153255f9d2 anonymous -> lambda: enable casts again (IDEA-157960) 2016-06-29 16:18:27 +03:00
Dmitry Batkovich efdee7ddde guava type migration: add parenthesises while FluentIterable.from conversion IDEA-157851 2016-06-29 14:38:28 +03:00
Dmitry Batkovich bbd50dacc2 guava inspection: negate isEmpty method conversion IDEA-154952 2016-05-05 12:21:29 +03:00
Anna.Kozlova f52458abdf restrict anonym -> lambda: reject if return type would be changed (IDEA-154805) 2016-04-29 14:41:28 +02:00
Anna.Kozlova ee4f41b14c don't open captures on type computation (IDEA-154968) 2016-04-20 17:49:29 +02:00
Dmitry Batkovich 0790362737 guava type migration: convert anonymous Function-s with runtime retention policy annotations to anonymous classes except @javax.annotations.Nullable (can be configured in settings) 2016-03-22 14:46:28 +03:00
Dmitry Batkovich af11a27380 type migration: migrate field in case of migration to super type (IDEA-69760) 2016-02-03 13:47:02 +03:00
Dmitry Batkovich 57d47656ae type migration: allow add root if type parameters are already exist (example: IDEA-150172) 2016-01-11 16:29:34 +03:00
Dmitry Batkovich 5c37134bf7 type migration: don't migrate method qualifiers type if type parameters are assignable (example: IDEA-150178) 2016-01-11 14:35:57 +03:00
Dmitry Batkovich 01a38fc69b guava type migration: "copyInto" conversion improved in case of wildcard types (IDEA-149037) 2015-12-25 15:20:35 +03:00
Dmitry Batkovich d16bc5f7fe guava type migration: support of Predicates.alwaysTrue/alwaysFalse/notNull/isNull/equalTo IDEA-148823 2015-12-23 18:28:42 +03:00
Dmitry Batkovich 2abed8dc94 guava type migration: quick fix improved to work in one write-action, support guava's Predicates 2015-12-23 16:15:47 +03:00