equal
deleted
inserted
replaced
755 } else if (value instanceof Byte) { |
755 } else if (value instanceof Byte) { |
756 result = Literal(BYTE, value). |
756 result = Literal(BYTE, value). |
757 setType(syms.byteType.constType(value)); |
757 setType(syms.byteType.constType(value)); |
758 } else if (value instanceof Character) { |
758 } else if (value instanceof Character) { |
759 int v = (int) (((Character) value).toString().charAt(0)); |
759 int v = (int) (((Character) value).toString().charAt(0)); |
760 result = Literal(CHAR, value). |
760 result = Literal(CHAR, v). |
761 setType(syms.charType.constType(v)); |
761 setType(syms.charType.constType(v)); |
762 } else if (value instanceof Double) { |
762 } else if (value instanceof Double) { |
763 result = Literal(DOUBLE, value). |
763 result = Literal(DOUBLE, value). |
764 setType(syms.doubleType.constType(value)); |
764 setType(syms.doubleType.constType(value)); |
765 } else if (value instanceof Float) { |
765 } else if (value instanceof Float) { |