mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-04-30 10:20:15 +07:00
Create from usage: sentence capitalization
This commit is contained in:
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
static void test(int i) {}
|
||||
public Test() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
byte[] bytes = new byte[0];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
{
|
||||
assert false: f();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'makeOp'" "true"
|
||||
// "Create method 'makeOp'" "true"
|
||||
class Base<T> {
|
||||
Base(Factory<T> factory, Operator<T> operator) {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'bar'" "true"
|
||||
// "Create method 'bar'" "true"
|
||||
public class Test {
|
||||
<T extends String> void foo (T t1, T t2) {
|
||||
bar (t1, t2);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
assert test();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'toMulti'" "true"
|
||||
// "Create method 'toMulti'" "true"
|
||||
import java.util.Map;
|
||||
|
||||
class BrokenCreateMethod {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public interface Test {
|
||||
|
||||
void test();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
{
|
||||
f(() -> {});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
{
|
||||
f(A::foo);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'foo'" "true"
|
||||
// "Create method 'foo'" "true"
|
||||
class Test {
|
||||
<R, D> R foo(T<R, D> t, D data) {
|
||||
return t.foo(this, data);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
<T> T foo(){
|
||||
B<T> x = f();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
public class CreateMethodTest {
|
||||
public <T> T aMethod(T t) {
|
||||
T result = f(t);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'bar'" "true"
|
||||
// "Create method 'bar'" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
Object x = bar();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'run'" "true"
|
||||
// "Create method 'run'" "true"
|
||||
class Bug {
|
||||
|
||||
interface Foo<X> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test2'" "true"
|
||||
// "Create method 'test2'" "true"
|
||||
class Foo {
|
||||
static String FOO_BAR = "Bar";
|
||||
void test1() { test2(FOO_BAR); }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'someMethod'" "true"
|
||||
// "Create method 'someMethod'" "true"
|
||||
public class Test {
|
||||
|
||||
public Object get() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
{
|
||||
new Runnable() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
interface X {
|
||||
public static void m() {
|
||||
f();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
interface I {}
|
||||
class A implements I {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
public class A {
|
||||
public A() {
|
||||
this(f());
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
te<caret>st();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test()<caret>;
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
test();<caret>
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
static void test(int i) {}
|
||||
public Test() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "false"
|
||||
// "Create method 'f'" "false"
|
||||
public class Foo {
|
||||
void foo(Bar f) {
|
||||
f.<caret>f(2);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
byte[] bytes = new byte[0];
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
{
|
||||
assert false: f<caret>();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'makeOp'" "true"
|
||||
// "Create method 'makeOp'" "true"
|
||||
class Base<T> {
|
||||
Base(Factory<T> factory, Operator<T> operator) {
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'bar'" "true"
|
||||
// "Create method 'bar'" "true"
|
||||
public class Test {
|
||||
<T extends String> void foo (T t1, T t2) {
|
||||
<caret>bar (t1, t2);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public class Test {
|
||||
public Test() {
|
||||
assert <caret>test();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'toMulti'" "true"
|
||||
// "Create method 'toMulti'" "true"
|
||||
import java.util.Map;
|
||||
|
||||
class BrokenCreateMethod {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test'" "true"
|
||||
// "Create method 'test'" "true"
|
||||
public interface Test {
|
||||
|
||||
}
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
{
|
||||
f<caret>(() -> {});
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
{
|
||||
f<caret>(A::foo);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'foo'" "true"
|
||||
// "Create method 'foo'" "true"
|
||||
class Test {
|
||||
<R, D> R foo(T<R, D> t, D data) {
|
||||
return t.f<caret>oo(this, data);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
<T> T foo(){
|
||||
B<T> x = f<caret>();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
public class CreateMethodTest {
|
||||
public <T> T aMethod(T t) {
|
||||
T result = f<caret>(t);
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'bar'" "true"
|
||||
// "Create method 'bar'" "true"
|
||||
class A {
|
||||
public void foo() {
|
||||
Object x = <caret>bar();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'run'" "true"
|
||||
// "Create method 'run'" "true"
|
||||
class Bug {
|
||||
|
||||
interface Foo<X> {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'test2'" "true"
|
||||
// "Create method 'test2'" "true"
|
||||
class Foo {
|
||||
static String FOO_BAR = "Bar";
|
||||
void test1() { tes<caret>t2(FOO_BAR); }
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'someMethod'" "true"
|
||||
// "Create method 'someMethod'" "true"
|
||||
public class Test {
|
||||
|
||||
public Object get() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
class A {
|
||||
{
|
||||
new Runnable() {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
interface X {
|
||||
public static void m() {
|
||||
f<caret>();
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
interface I {}
|
||||
class A implements I {
|
||||
{
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "true"
|
||||
// "Create method 'f'" "true"
|
||||
public class A {
|
||||
public A() {
|
||||
this(<caret>f());
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
// "Create Method 'f'" "false"
|
||||
// "Create method 'f'" "false"
|
||||
class A {
|
||||
{
|
||||
f<caret>(xxx);
|
||||
|
||||
Reference in New Issue
Block a user