Members of the KDE Community are recommended to subscribe to the kde-community mailing list at https://mail.kde.org/mailman/listinfo/kde-community to allow them to participate in important discussions and receive other important announcements

Commit edd187d8 authored by Ralf Habacker's avatar Ralf Habacker

Add basic java import test cases

CCBUG:386479,386624
parent c9a8868a
/* HelloWorld.java
*/
public class HelloWorld
{
public static void main(String[] args) {
System.out.println("Hello World!");
}
}
package apackage;
public abstract class AbstractClass {
public AbstractClass() {
// TODO Auto-generated constructor stub
}
void method() {}
abstract void abstractMethod();
}
package apackage;
class Base {
public Base() {}
Type method(Type type) { return type; }
public void methodWithVector(String[] args) {}
public Type[] getSubs() { return null; }
public final void finalMethod() {}
String[] stringVector;
}
package apackage;
class Derived extends Base {
public Derived() {}
public void publicMethod() {}
protected void protectedMethod() {}
@SuppressWarnings("unused")
private void privateMethod() {}
static public void staticPublicMethod() {}
static protected void staticProtectedMethod() {}
@SuppressWarnings("unused")
static private void staticPrivateMethod() {}
int publicMethodWithParameterAndReturnType(int a) { return a; }
public int _public_int_member;
protected int _protected_int_member;
@SuppressWarnings("unused")
private int _private_int_member;
@SuppressWarnings("unused")
private int _private_initialized_int_member = 0;
static int _static_int_member = 0;
@SuppressWarnings("unused")
private final int _private_final_int_member = 0;
}
package apackage;
public enum Enum {
Value1,
Value2
}
package apackage;
public class Generic<T> {
private T value;
public Generic() {}
public Generic(T value) { this.value = value; }
public void set(T value) { this.value = value; }
public T get() { return value; }
public boolean isEmpty() { return value != null; }
public void empty() { value = null; }
}
package apackage;
public interface Interface {
}
package apackage;
public class Type {
public Type() {}
}
package apackage;
public class UseGeneric {
private Generic<Integer> _a;
public UseGeneric(Generic<Integer> a) {}
public Generic<Integer> getA() {
return _a;
}
public void setA(Generic<Integer> _a) {
this._a = _a;
}
}
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment