mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-10 13:17:09 +07:00
more java tests moved to community
This commit is contained in:
@@ -0,0 +1,28 @@
|
||||
public class T2 {
|
||||
int <caret>fff;
|
||||
|
||||
public T2(int i) {
|
||||
fff = i;
|
||||
}
|
||||
|
||||
public int <flown11>getFff() {
|
||||
return <flown1>fff;
|
||||
}
|
||||
|
||||
void f(int i2) {
|
||||
// fff=i2;
|
||||
p(<flown111>getFff());
|
||||
}
|
||||
|
||||
public void p(int <flown1111>i) {
|
||||
new F(<flown11111>i);
|
||||
}
|
||||
|
||||
private class F {
|
||||
private int <flown11111111>xss;
|
||||
|
||||
public F(int <flown111111>i) {
|
||||
xss = <flown1111111>i;
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,66 @@
|
||||
import java.util.*;
|
||||
|
||||
class X {
|
||||
class MyMap implements Map {
|
||||
public int size() {
|
||||
return 0; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public boolean isEmpty() {
|
||||
return false; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public boolean containsKey(Object key) {
|
||||
return false; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public boolean containsValue(Object value) {
|
||||
return false; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public Object get(Object <flown1111>key) {
|
||||
return key.<flown11111>getClass();
|
||||
}
|
||||
|
||||
public Object put(Object key, Object value) {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public Object remove(Object key) {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public void putAll(Map m) {
|
||||
//To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public void clear() {
|
||||
//To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public Set keySet() {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public Collection values() {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public Set entrySet() {
|
||||
return null; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
public String getEncoding( int <caret>virtualFile, boolean useParentDefaults) {
|
||||
Map<Integer,String> myMapping = null;
|
||||
int <flown11>parent = <flown1>virtualFile;
|
||||
while (true) {
|
||||
String charset = myMapping.get(<flown111>parent);
|
||||
if (charset != null || !useParentDefaults) return charset;
|
||||
if (parent == 0) break;
|
||||
parent = parent-1;
|
||||
}
|
||||
return null;
|
||||
}
|
||||
|
||||
}
|
||||
@@ -0,0 +1,30 @@
|
||||
public class T2 {
|
||||
int <flown111111>fff;
|
||||
|
||||
{
|
||||
// f(fff);
|
||||
}
|
||||
|
||||
void f(int <caret>i2) {
|
||||
int i = -1;
|
||||
i = 0;
|
||||
try { //
|
||||
i = 1;
|
||||
if (i2 == 0) {
|
||||
p(<flown1>i2);//
|
||||
}
|
||||
}
|
||||
catch (Exception e) {
|
||||
|
||||
}
|
||||
finally {
|
||||
i = 9;
|
||||
}
|
||||
}
|
||||
|
||||
public void p(int <flown11>i) {//
|
||||
// fff = i;
|
||||
int <flown1111>ddd = <flown111>i;
|
||||
fff =<flown11111>ddd;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user