J2K: drop line breaks in some polyadic expressions

This commit is contained in:
Natalia Ukhorskaya
2016-03-02 10:03:11 +03:00
parent f1b6bf7817
commit c928237699
7 changed files with 99 additions and 4 deletions
@@ -0,0 +1,46 @@
public class A {
public static void main(String[] args) {
boolean ANDAND = true
&& true
&& true;
boolean OROR = true
|| true
|| true;
int PLUS = 1
+ 2
+ 3;
int MINUS = 1
- 2
- 3;
int ASTERISK = 1
* 2
* 3;
int DIV = 1
/ 2
/ 3;
int PERC = 1
% 2
% 3;
int GTGT = 1
<< 2
<< 3;
int LTLT = 1
>> 2
>> 3;
int XOR = 1
^ 2
^ 3;
int AND = 1
& 2
& 3;
int OR = 1
% 2
% 3;
int GTGTGT = 1
>>> 2
>>> 3;
}
}
@@ -0,0 +1,25 @@
object A {
@JvmStatic fun main(args: Array<String>) {
val ANDAND = true
&& true
&& true
val OROR = true
|| true
|| true
val PLUS = 1
+2
+3
val MINUS = 1
-2
-3
val ASTERISK = 1 * 2 * 3
val DIV = 1 / 2 / 3
val PERC = 1 % 2 % 3
val GTGT = 1 shl 2 shl 3
val LTLT = 1 shr 2 shr 3
val XOR = 1 xor 2 xor 3
val AND = 1 and 2 and 3
val OR = 1 % 2 % 3
val GTGTGT = 1 ushr 2 ushr 3
}
}