mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Cls*.setMirror(): cleanup, fixes, and better diagnostic
This commit is contained in:
@@ -4,9 +4,8 @@
|
||||
|
||||
package pkg;
|
||||
|
||||
class $BuckClass {
|
||||
|
||||
class $BuckClass {
|
||||
$BuckClass() { /* compiled code */ }
|
||||
|
||||
|
||||
static pkg.$BuckClass getInstance() { /* compiled code */ }
|
||||
}
|
||||
|
||||
@@ -0,0 +1,58 @@
|
||||
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package pkg;
|
||||
|
||||
abstract class Annotations {
|
||||
Annotations() { /* compiled code */ }
|
||||
|
||||
@pkg.Annotations.A1
|
||||
abstract void m1();
|
||||
|
||||
@pkg.Annotations.A2
|
||||
abstract void m2a();
|
||||
|
||||
@pkg.Annotations.A2("+")
|
||||
abstract void m2b();
|
||||
|
||||
@pkg.Annotations.A3(a1 = @pkg.Annotations.A1, a2 = @pkg.Annotations.A2)
|
||||
abstract void m3();
|
||||
|
||||
@pkg.Annotations.A4
|
||||
abstract void m4a();
|
||||
|
||||
@pkg.Annotations.A4(ids = {42, 84})
|
||||
abstract void m4b();
|
||||
|
||||
static @interface IndeterminateAnno {
|
||||
float f1() default -1.0f / 0.0;
|
||||
|
||||
float f2() default 0.0f / 0.0;
|
||||
|
||||
float f3() default 1.0f / 0.0;
|
||||
|
||||
double d1() default -1.0 / 0.0;
|
||||
|
||||
double d2() default 0.0d / 0.0;
|
||||
|
||||
double d3() default 1.0 / 0.0;
|
||||
}
|
||||
|
||||
static @interface A4 {
|
||||
int[] ids() default {};
|
||||
}
|
||||
|
||||
static @interface A3 {
|
||||
pkg.Annotations.A1 a1();
|
||||
|
||||
pkg.Annotations.A2 a2();
|
||||
}
|
||||
|
||||
static @interface A2 {
|
||||
java.lang.String value() default "-";
|
||||
}
|
||||
|
||||
static @interface A1 {
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,22 @@
|
||||
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package pkg;
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
class Deprecated {
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
int f;
|
||||
|
||||
Deprecated() { /* compiled code */ }
|
||||
|
||||
/**
|
||||
* @deprecated
|
||||
*/
|
||||
void m() { /* compiled code */ }
|
||||
}
|
||||
@@ -6,9 +6,10 @@ package pkg;
|
||||
|
||||
final enum EmptyEnum {
|
||||
;
|
||||
|
||||
public static pkg.EmptyEnum[] values() { /* compiled code */ }
|
||||
|
||||
|
||||
public static pkg.EmptyEnum valueOf(java.lang.String s) { /* compiled code */ }
|
||||
|
||||
|
||||
private EmptyEnum() { /* compiled code */ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,18 @@
|
||||
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package pkg;
|
||||
|
||||
public final enum EnumWithFields {
|
||||
public static final E1, public static final E2;
|
||||
|
||||
boolean f1;
|
||||
boolean f2;
|
||||
|
||||
public static pkg.EnumWithFields[] values() { /* compiled code */ }
|
||||
|
||||
public static pkg.EnumWithFields valueOf(java.lang.String s) { /* compiled code */ }
|
||||
|
||||
private EnumWithFields() { /* compiled code */ }
|
||||
}
|
||||
@@ -4,9 +4,8 @@
|
||||
|
||||
package pkg;
|
||||
|
||||
interface ExtMethods {
|
||||
|
||||
interface ExtMethods {
|
||||
void m1();
|
||||
|
||||
|
||||
void m2() { /* compiled code */ }
|
||||
}
|
||||
|
||||
@@ -4,12 +4,11 @@
|
||||
|
||||
package pkg;
|
||||
|
||||
class MethodReceiver {
|
||||
|
||||
class MethodReceiver {
|
||||
MethodReceiver() { /* compiled code */ }
|
||||
|
||||
|
||||
void m(int i) { /* compiled code */ }
|
||||
|
||||
|
||||
static @interface A {
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package pkg;
|
||||
|
||||
class NormalClass {
|
||||
private final java.lang.Object o;
|
||||
|
||||
NormalClass() { /* compiled code */ }
|
||||
|
||||
java.lang.Object get() { /* compiled code */ }
|
||||
|
||||
private static class Inner {
|
||||
private Inner() { /* compiled code */ }
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,13 @@
|
||||
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package pkg;
|
||||
|
||||
public class ParameterNames {
|
||||
public ParameterNames() { /* compiled code */ }
|
||||
|
||||
public void test(int i, int i1, java.lang.String s) { /* compiled code */ }
|
||||
|
||||
private void testImpl(int i, int i1, java.lang.String s, boolean b) { /* compiled code */ }
|
||||
}
|
||||
@@ -0,0 +1,15 @@
|
||||
|
||||
// IntelliJ API Decompiler stub source generated from a class file
|
||||
// Implementation of methods is not available
|
||||
|
||||
package pkg;
|
||||
|
||||
public final enum SimpleEnum {
|
||||
public static final E1, public static final E2;
|
||||
|
||||
public static pkg.SimpleEnum[] values() { /* compiled code */ }
|
||||
|
||||
public static pkg.SimpleEnum valueOf(java.lang.String s) { /* compiled code */ }
|
||||
|
||||
private SimpleEnum() { /* compiled code */ }
|
||||
}
|
||||
@@ -5,5 +5,5 @@
|
||||
package pkg;
|
||||
|
||||
@pkg.PkgAnno
|
||||
interface $$package-info /* Real name is 'package-info' */ {
|
||||
interface $$package-info /* Real name is 'package-info' */ {
|
||||
}
|
||||
|
||||
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
@@ -0,0 +1,37 @@
|
||||
package pkg;
|
||||
|
||||
abstract class Annotations {
|
||||
@interface A1 { }
|
||||
|
||||
@interface A2 {
|
||||
String value() default "-";
|
||||
}
|
||||
|
||||
@interface A3 {
|
||||
A1 a1();
|
||||
A2 a2();
|
||||
}
|
||||
|
||||
@interface A4 {
|
||||
int[] ids() default { };
|
||||
}
|
||||
|
||||
@A1 abstract void m1();
|
||||
|
||||
@A2() abstract void m2a();
|
||||
@A2("+") abstract void m2b();
|
||||
|
||||
@A3(a1 = @A1, a2 = @A2) abstract void m3();
|
||||
|
||||
@A4 abstract void m4a();
|
||||
@A4(ids = {42, 84}) abstract void m4b();
|
||||
|
||||
@interface IndeterminateAnno {
|
||||
float f1() default Float.NEGATIVE_INFINITY;
|
||||
float f2() default Float.NaN;
|
||||
float f3() default Float.POSITIVE_INFINITY;
|
||||
double d1() default Double.NEGATIVE_INFINITY;
|
||||
double d2() default Double.NaN;
|
||||
double d3() default Double.POSITIVE_INFINITY;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,10 @@
|
||||
package pkg;
|
||||
|
||||
/** @deprecated don't use */
|
||||
class Deprecated {
|
||||
/** @deprecated don't use */
|
||||
int f;
|
||||
|
||||
/** @deprecated don't use */
|
||||
void m() { }
|
||||
}
|
||||
@@ -0,0 +1,8 @@
|
||||
package pkg;
|
||||
|
||||
public enum EnumWithFields {
|
||||
E1, E2;
|
||||
|
||||
boolean f1;
|
||||
boolean f2;
|
||||
}
|
||||
@@ -0,0 +1,11 @@
|
||||
package pkg;
|
||||
|
||||
class NormalClass {
|
||||
private final Object o = new Inner();
|
||||
|
||||
Object get() {
|
||||
return o;
|
||||
}
|
||||
|
||||
private static class Inner { }
|
||||
}
|
||||
Binary file not shown.
@@ -0,0 +1,13 @@
|
||||
package pkg;
|
||||
|
||||
public class ParameterNames {
|
||||
public void test(int index, int id, String name) {
|
||||
testImpl(index, id, name, true);
|
||||
}
|
||||
|
||||
private void testImpl(int index, int id, String name, boolean print) {
|
||||
if (print) {
|
||||
System.out.println("[" + index + "] " + id + ":" + name);
|
||||
}
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
package pkg;
|
||||
|
||||
public enum SimpleEnum {
|
||||
E1, E2
|
||||
}
|
||||
Reference in New Issue
Block a user