Andreas Dangel
a2df7e2d29
Merge branch 'master' into java13
2019-09-11 20:41:00 +02:00
Andreas Dangel
970c86f557
[java] Introduce language version 12-preview and 13-preview
2019-09-11 20:36:29 +02:00
Clément Fournier
be7d439134
Checkstyle
2019-09-08 16:10:45 +02:00
Clément Fournier
0b52f6427a
Add regression test for MissingOverride
...
Refs #2007
2019-09-08 16:07:05 +02:00
Andreas Dangel
09a183702c
Revert "[java] Remove java12 break-with-expression support"
...
This reverts commit 2ba142274717238ee0862eed4aa2df3de2070218.
2019-09-07 10:13:02 +02:00
Andreas Dangel
580549a07e
Merge branch 'master' into java13
2019-09-06 15:23:51 +02:00
Andreas Dangel
f3e4a77105
[java] Adjust grammar for text blocks
...
Refs #1973
2019-09-06 15:21:08 +02:00
Juan Martín Sotuyo Dodero
bb0379ef4f
Merge pull request #1982 from adangel/issue-1923
...
[core] Use real file name in ruleContext during analysis
2019-09-05 20:04:21 -03:00
Andreas Dangel
ddd07e517a
Merge branch 'master' into issue-1923
2019-09-03 19:43:27 +02:00
Juan Martín Sotuyo Dodero
282f29f781
Add more missing imports
2019-09-02 17:51:33 -03:00
Juan Martín Sotuyo Dodero
e72a92d2fb
Merge branch 'master' into issue-1952
2019-09-02 17:46:20 -03:00
Juan Martín Sotuyo Dodero
de13f7a0ae
Add missing imports to fix tests
2019-09-02 17:40:33 -03:00
Juan Martín Sotuyo Dodero
3a7f747c05
Improve TypeHelper.isA to better handle edge cases
2019-09-02 17:40:03 -03:00
Juan Martín Sotuyo Dodero
780edaa5f5
Merge branch 'pr-1970'
2019-08-18 01:37:02 -03:00
Juan Martín Sotuyo Dodero
febf512e9c
Merge branch 'pr-1968'
2019-08-18 01:28:07 -03:00
Andreas Dangel
bdd0f2c525
[core] Use real file name in ruleContext during analysis
...
* This is needed to fix #1923
* RuleContext, RuleViolations all use the real name
* The shortname is only applied by the renderers now
at the end of the processing
* Error logging and reporting also uses the real, full name
of the file being analysed
2019-08-16 11:22:48 +02:00
Andreas Dangel
2ba1422747
[java] Remove java12 break-with-expression support
...
This preview language feature has been replaced with
the yield statement in java 13.
2019-08-13 20:48:06 +02:00
Andreas Dangel
ac4a0daff9
[java] Add Java 13 support
...
Fix type resolution of switch with yields
2019-08-13 20:48:01 +02:00
Andreas Dangel
b110186ed7
[java] Add Java 13 support
...
* Add text block literal
2019-08-13 20:00:40 +02:00
Andreas Dangel
969972214c
[java] Add Java 13 support
...
* Java 13 is the new default
* New yield statement
2019-08-13 18:42:40 +02:00
Anton Kot
e581bba71e
review_changes
2019-08-13 17:48:25 +02:00
Anton Kot
ce4b2c6041
Issue_1862_No_Message_Digest_class_field
2019-08-12 13:02:26 +02:00
Tobias Weimer
f8bb126c6c
[java] DoubleBraceInitialization:
...
* Updated documentation to make the example compile (there is no varargs version of addAll(..))
2019-08-11 11:16:33 +02:00
Andreas Dangel
7f7213b8e7
[java] CloseResource: Fix NPE if type of method parameter is not known
2019-08-10 19:04:08 +02:00
Andreas Dangel
27164804f1
[java] CloseResource: fix false-negative when byte array is passed in
2019-08-10 18:11:28 +02:00
Andreas Dangel
c87af46d3f
Update release notes
...
* Reference fixed issues in test cases for CloseResources
* Fixes #1922
* Fixes #1966
* Fixes #1967
2019-08-10 12:25:42 +02:00
Andreas Dangel
cb63f5f8c4
[java] CloseResource: add test case for #1076
...
The problem is not reproducible.
2019-08-10 12:03:17 +02:00
Andreas Dangel
377275edae
[java] CloseResource: possible false positive with Streams
...
By default `java.util.stream.Stream` is now ignored.
Fixes #1922
2019-08-10 12:03:09 +02:00
Andreas Dangel
e0535f4bce
[java] CloseResource: add additional test case
2019-08-10 12:03:09 +02:00
Andreas Dangel
ef8ed08ee0
[java] CloseResource: fix false positive with assignments before try
2019-08-10 12:03:09 +02:00
Andreas Dangel
619172560b
[java] CloseResource: consider method parameters in general
2019-08-10 12:03:09 +02:00
Andreas Dangel
5b63d787c7
[java] CloseResource: ignore variables that are initialized from parameters
...
If a closable local variable is initialized from a method/constructor
parameter, then it is ignored. In that case, the resource is not created
in this method, but somewhere else. Therefore the resources should
be closed there.
2019-08-10 12:03:03 +02:00
Andreas Dangel
1a5486dc30
Merge branch 'pr-1954'
2019-08-04 11:22:56 +02:00
Andreas Dangel
f9d8898f7a
[java] Fix FP for UnnecessaryFQNRule with sub packages
2019-08-04 10:39:56 +02:00
Andreas Dangel
8fdea448e4
[java] Compare ignored annotations by fully qualified names only
...
Fixes #1952
2019-08-03 12:31:28 +02:00
Clément Fournier
225430953b
Checkstyle
2019-07-30 19:43:49 +02:00
Andreas Dangel
091ce3d40e
[java] Deprecate ASTImportDeclaration#getImportedNameNode() as well
...
Refs #1888
2019-07-30 19:30:19 +02:00
Clément Fournier
493e0014b0
Also fix a false negative
2019-07-30 16:47:21 +02:00
Clément Fournier
fd3eac3c9d
Fix #1951 - false positive for UnnecessaryFQCN
2019-07-30 16:28:16 +02:00
Andreas Dangel
295759456d
[java] Deprecate ASTImportDeclaration#getPackage(), refs #1888
2019-07-28 18:35:12 +02:00
Andreas Dangel
aa55a0108c
[java] CloseResource: ignore java.io.CharArrayWriter by default
...
Refs #1928
2019-07-27 10:27:18 +02:00
Clément Fournier
f1fb425313
Improve UseLocaleWithCaseConversions doc based on #1929
2019-07-25 02:42:33 +02:00
Andreas Dangel
be67ad97b0
Merge branch 'pr-1916'
2019-07-23 20:22:30 +02:00
Andreas Dangel
f7c16d4abc
[java] MissingStaticMethodInNonInstantiatableClass
...
* Migrate to XPath 2.0
* Add property "annotations"
2019-07-23 20:19:47 +02:00
Clément Fournier
26e74b880e
Merge branch 'issue-1910'
2019-07-23 15:40:52 +02:00
Andreas Dangel
64abea7f42
Merge branch 'pr-1905'
2019-07-22 20:05:53 +02:00
Andreas Dangel
f9bb5b85a2
[java] DataflowAnomalyAnalysis - add test case for #1749
2019-07-22 19:34:02 +02:00
YoonhoChoi96
56b1bfbd97
Remove wasted lists and Simplify
2019-07-22 14:22:26 +09:00
YoonhoChoi96
83f4682063
fix typo
2019-07-22 12:57:21 +09:00
YoonhoChoi96
1dca17fd1b
Verifying line numbers and the messages in Test Cases
2019-07-22 12:46:24 +09:00