IDEA-113062 (using file naming convention to tell top-level classes from inner)

Allows to correctly identify and parse classes with "$" abuse.
This commit is contained in:
Roman Shevchenko
2013-11-16 19:01:13 +01:00
parent 1483356656
commit 4645f02b2b
16 changed files with 82 additions and 18 deletions
@@ -0,0 +1,7 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
public class DefaultPackage {
public DefaultPackage() { /* compiled code */ }
}
@@ -0,0 +1,11 @@
// IntelliJ API Decompiler stub source generated from a class file
// Implementation of methods is not available
package pkg;
public class LocalClass {
public LocalClass() { /* compiled code */ }
public java.lang.Runnable runnable() { /* 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 Middle$Buck {
public Middle$Buck() { /* compiled code */ }
private static class Inner$Buck {
private Inner$Buck() { /* compiled code */ }
}
}
@@ -0,0 +1,2 @@
public class DefaultPackage {
}
@@ -0,0 +1,13 @@
package pkg;
public class LocalClass {
public Runnable runnable() {
class MyRunnable implements Runnable {
public void run() {
System.out.println(this);
}
}
return new MyRunnable();
}
}
@@ -0,0 +1,6 @@
package pkg;
public class Middle$Buck {
private static class Inner$Buck {
}
}