SQL code style per dialect: UI

GitOrigin-RevId: 72cca4d6a23a5e2aa2089c03932ab2e9d08bfa48
This commit is contained in:
Leonid Bushuev
2019-05-03 01:36:24 +03:00
committed by intellij-monorepo-bot
parent a95f888fb1
commit 9f35a30458
1349 changed files with 13888 additions and 17785 deletions
@@ -1,2 +0,0 @@
/**<caret>
* Copyright © 2000-2010 JetBrains s.r.o.
@@ -1,2 +0,0 @@
/**
* Copyright &copy; 2000-2010 JetBrains s.r.o.
@@ -1 +0,0 @@
/*<caret> © 2010 JetBrains
@@ -1 +0,0 @@
/* &copy; 2010 JetBrains
@@ -1,3 +0,0 @@
class C {
String s = "<caret>Áî
}
@@ -1,3 +0,0 @@
class C {
String s = "\u00c1\u00ee
}
@@ -1,6 +0,0 @@
package c;
import a.*;
class Test extends Base {
Test() { }
}
@@ -1,7 +0,0 @@
class C {
void m(Foo f) {}
{
m(() -> {});
}
}
@@ -1,14 +0,0 @@
interface A {
void enableInspections(B... providers);
void enableInspections(Runnable r, String... inspections);
}
interface B {
Class[] get();
}
class C {
void foo(A a) {
a.enableInspections(() -> new Class[]{});
}
}
@@ -1,33 +0,0 @@
import java.util.function.Function;
class Main {
void m(B b) {
Function<A<String>, String> f1 = A<String>::getName;
Function<A<String>, String> f10 = A::getName;
Function<B, String> f2 = B::getName;
Function<B, String> f3 = b::<error descr="Cannot resolve method 'getName'">getName</error>;
}
}
interface I {
String getName();
static String getName(final I i) {
return null;
}
}
class A<T> implements I {
@Override
public String getName() {
return null;
}
}
class B implements I {
@Override
public String getName() {
return null;
}
}
@@ -1,9 +0,0 @@
// "Replace explicit type with 'var'" "true"
class MyTest {
private void m() {
var r = new Runnable() {
@Override
public void run() {}
};
}
}
@@ -1,9 +0,0 @@
// "Replace explicit type with 'var'" "true"
class MyTest {
private void m() {
Ru<caret>nnable r = new Runnable() {
@Override
public void run() {}
};
}
}
@@ -1,25 +0,0 @@
// "Make 'b' return 'java.lang.Integer'" "true"
class MyClass {
interface BaseInterface {
Object b();
}
class BooleanImpl implements BaseInterface {
@Override
public Boolean b() {
return true;
}
}
class IntegerImpl implements BaseInterface {
@Override
public Integer b() {
return 1;
}
}
}
@@ -1,25 +0,0 @@
// "Make 'b' return 'java.lang.Integer'" "true"
class MyClass {
interface BaseInterface {
Object b();
}
class BooleanImpl implements BaseInterface {
@Override
public Boolean b() {
return true;
}
}
class IntegerImpl implements BaseInterface {
@Override
public String b() {
return <caret>1;
}
}
}
@@ -1,14 +0,0 @@
// "Replace Optional.isPresent() condition with functional style expression" "false"
import java.util.Optional;
class Test {
Object get() {
Optional<String> obj = Stream.of("one", "two").filter(s -> Math.sqrt(s.length()) > 100).findFirst();
if (obj.<caret>isPresent()) {
return obj.get();
} else {
return 7;
}
}
}
@@ -1,13 +0,0 @@
// "Simplify boolean expression" "true"
class X {
void test(int a, int b) {
if (a + 1 + foo(a, b) > 5) {
}
}
private int foo(int a, int b) {
return a+b;
}
}
@@ -1,13 +0,0 @@
// "Simplify boolean expression" "true"
class X {
void test(int a, int b) {
if (<caret>true && (a + 1) + foo((a), b) > 5) {
}
}
private int foo(int a, int b) {
return a+b;
}
}
@@ -43,14 +43,4 @@ public class Main {
interface Visitor { }
}
class X implements Iterable<String> {
class Y {
void test() {
for (String s : X.this) {
System.out.println(s);
}
}
}
}
}
@@ -31,15 +31,4 @@ public class Main {
}
}
class X implements Map<String, String> {
class Y {
void test() {
for (Entry<String, String> entry : X.this.entrySet()) {
String k = entry.getKey();
String v = entry.getValue();
System.out.println(k + "-" + v);
}
}
}
}
}
@@ -33,12 +33,4 @@ public class Main {
interface Visitor { }
}
class X implements Iterable<String> {
class Y {
void test() {
forEach(System.out::println);
}
}
}
}
@@ -21,11 +21,4 @@ public class Main {
map.forEach(otherMap::putIfAbsent);
}
class X implements Map<String, String> {
class Y {
void test() {
forEach((k, v) -> System.out.println(k + "-" + v));
}
}
}
}