Java inspection: Don't apply chained assignments in "Move return to computation" (IDEA-121153)

This commit is contained in:
Pavel Dolgov
2016-09-06 19:05:05 +03:00
parent 1fea799671
commit 68276bafcf
27 changed files with 105 additions and 153 deletions
@@ -0,0 +1,13 @@
// "Move 'return' to computation of the value of 'result'" "false"
class T {
int size;
int width;
int height;
public int hashCode() {
int result = size;
result = 31 * result + width;
result = 31 * result + height;
ret<caret>urn result;
}
}