mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
Java inspection: Don't apply chained assignments in "Move return to computation" (IDEA-121153)
This commit is contained in:
+13
@@ -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;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user