mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 06:05:01 +07:00
moved to community
This commit is contained in:
@@ -0,0 +1,3 @@
|
||||
class AClass<caret> {
|
||||
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Foo {
|
||||
@SuppressWarnings({"FieldCanBeLocal"})
|
||||
private final String text;
|
||||
public Foo(String text) {
|
||||
this.text = text;
|
||||
}
|
||||
public void doSomething(int i) {
|
||||
System.out.println(i+<caret>i);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
class E {
|
||||
void fff() {
|
||||
int i = <caret>
|
||||
}
|
||||
}
|
||||
+11
@@ -0,0 +1,11 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xs:book xmlns:xs="http://myschema/" isbn="1234">
|
||||
<title2>Alice in Wonderland
|
||||
</title2>
|
||||
<author>C S Lewis</author>
|
||||
|
||||
<character>
|
||||
<name>Alice</name>
|
||||
</character>
|
||||
|
||||
</xs:book>
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema"
|
||||
targetNamespace="http://myschema/"
|
||||
elementFormDefault="unqualified">
|
||||
<xsd:element name="book">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="<caret>title2" type="xsd:string"/>
|
||||
<xsd:element name="author" type="xsd:string"/>
|
||||
<xsd:element name="character" minOccurs="0" maxOccurs="unbounded">
|
||||
<xsd:complexType>
|
||||
<xsd:sequence>
|
||||
<xsd:element name="name" type="xsd:string"/>
|
||||
<xsd:element name="friend-of" type="xsd:string" minOccurs="0"
|
||||
maxOccurs="unbounded"/>
|
||||
<xsd:element name="since" type="xsd:date"/>
|
||||
<xsd:element name="qualification" type="xsd:string"/>
|
||||
</xsd:sequence>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:sequence>
|
||||
<xsd:attribute name="isbn" type="xsd:string"/>
|
||||
</xsd:complexType>
|
||||
</xsd:element>
|
||||
</xsd:schema>
|
||||
|
||||
+16
@@ -0,0 +1,16 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<web-app version="2.4"
|
||||
xmlns="http://java.sun.com/xml/ns/j2ee"
|
||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://java.sun.com/xml/ns/j2ee http://java.sun.com/xml/ns/j2ee/web-app_2_4.xsd" >
|
||||
<description>rtetre tretre</description>
|
||||
<display-name>rrr aksjdb sadkj fgrrretyr re tre tre tre t</display-name>
|
||||
<jsp-config>
|
||||
<jsp-property-group>
|
||||
<description>
|
||||
<caret><!--<ddd/>-->
|
||||
</description>
|
||||
<dddddddddd/>
|
||||
</jsp-property-group>
|
||||
</jsp-config>
|
||||
</web-app>
|
||||
@@ -0,0 +1,5 @@
|
||||
class AClass {
|
||||
{
|
||||
toString(0,<caret>0);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,9 @@
|
||||
class SSSSS {
|
||||
public static void suite() {
|
||||
<caret>
|
||||
new Runnable() {
|
||||
public void run() {
|
||||
|
||||
}
|
||||
};
|
||||
}
|
||||
@@ -0,0 +1,29 @@
|
||||
class abcd
|
||||
{
|
||||
private static void throwException(Object obj)
|
||||
{
|
||||
new NullPointerException("NPE");
|
||||
throw (obj == null) ? new NullPointerException("NPE")
|
||||
: new RuntimeException("RTE");
|
||||
}
|
||||
|
||||
public static void main(String[] args) throws Exception
|
||||
{
|
||||
try
|
||||
{
|
||||
throwException(null);
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
t.printStackTrace();
|
||||
}
|
||||
try
|
||||
{
|
||||
throwException(new Object());
|
||||
}
|
||||
catch (Throwable t)
|
||||
{
|
||||
t.printStackTrace();
|
||||
}<caret>
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
class C3 {
|
||||
@SuppressWarnings({"UnusedDeclaration"})
|
||||
private int xxxx;
|
||||
|
||||
public C3(int xxxx) {
|
||||
this.xxxx = xxxx;
|
||||
}
|
||||
|
||||
void f(int i) {
|
||||
int x = <caret>0;
|
||||
f(x+i);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
class Test
|
||||
{
|
||||
|
||||
{
|
||||
String s = new String(
|
||||
<caret>1);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,61 @@
|
||||
import java.util.concurrent.Callable;
|
||||
|
||||
/**
|
||||
* Created by IntelliJ IDEA.
|
||||
* User: cdr
|
||||
* Date: May 19, 2009
|
||||
* Time: 2:59:31 PM
|
||||
* To change this template use File | Settings | File Templates.
|
||||
*/
|
||||
class LineMarkers implements Runnable, Callable, CharSequence{
|
||||
<caret>
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public void run() {
|
||||
//To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public Object call() throws Exception {
|
||||
return this;
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public int length() {
|
||||
return 0; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
|
||||
public char charAt(int index) {
|
||||
return 0; //To change body of implemented methods use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
public CharSequence subSequence(int start, int end) {
|
||||
return toString();
|
||||
}
|
||||
}
|
||||
+13
@@ -0,0 +1,13 @@
|
||||
class XXXXX {
|
||||
void f() {
|
||||
|
||||
}
|
||||
void gg() {
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
class Y extends XXXXX {
|
||||
void f() {
|
||||
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,43 @@
|
||||
import java.io.*;
|
||||
|
||||
class Test {
|
||||
float y;
|
||||
void f() {
|
||||
int x = 11;
|
||||
System.out.println("aap");
|
||||
if (Math.random() > 0.5) {
|
||||
for (int j = 0; j < 10; j++) {
|
||||
System.out.println(x);
|
||||
}
|
||||
}
|
||||
try {
|
||||
g(0);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||
}
|
||||
|
||||
try {
|
||||
g(0);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
void foo() {
|
||||
try {
|
||||
g(0);
|
||||
} catch (IOException e) {
|
||||
e.printStackTrace(); //To change body of catch statement use File | Settings | File Templates.
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
*
|
||||
* @param u
|
||||
*/
|
||||
private void g(int u) {
|
||||
int x = 12;
|
||||
System.out.println("foo");
|
||||
System.out.println("bar");
|
||||
System.out.println(x);
|
||||
}
|
||||
}
|
||||
+10
@@ -0,0 +1,10 @@
|
||||
class Ds {
|
||||
public int meth(int j) {
|
||||
int <caret>e = j;
|
||||
int d = e;
|
||||
if (j==0) {
|
||||
int e = j;
|
||||
}
|
||||
return 0;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
class Unused {
|
||||
private int ffff;
|
||||
void foo(int p) {
|
||||
if (p==0) return;
|
||||
<caret>
|
||||
}
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Reference in New Issue
Block a user