Java: Fixed conversion of constructor parameters for java.awt.Color (IDEA-172996)

This commit is contained in:
Pavel Dolgov
2017-06-01 13:30:14 +03:00
parent bbd50aea32
commit 6ebd6d9b4d
5 changed files with 22 additions and 15 deletions
@@ -1,9 +1,9 @@
// "Convert to 'new Color(37, 100, 120, 140)'" "true"
// "Convert to 'new Color(100, 120, 140, 37)'" "true"
package java.awt;
class A {
private Color color = new Color(37, 100, 120, 140);
private Color color = new Color(100, 120, 140, 37);
}
class Color {
@@ -1,9 +1,9 @@
// "Convert to 'new Color(0x2564788c,true)'" "true"
// "Convert to 'new Color(0x8c256478,true)'" "true"
package java.awt;
class A {
private Color color = new Color(0x2564788c, true);
private Color color = new Color(0x8c256478, true);
}
class Color {
@@ -1,4 +1,4 @@
// "Convert to 'new Color(37, 100, 120, 140)'" "true"
// "Convert to 'new Color(100, 120, 140, 37)'" "true"
package java.awt;
@@ -1,4 +1,4 @@
// "Convert to 'new Color(0x2564788c,true)'" "true"
// "Convert to 'new Color(0x8c256478,true)'" "true"
package java.awt;