mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-26 19:06:24 +07:00
inline: check constructors separately from class (IDEA-180820)
This commit is contained in:
+21
@@ -0,0 +1,21 @@
|
||||
class InlineWithPrivateConstructorAccess {
|
||||
public static class SomeClass {
|
||||
|
||||
private SomeClass() { }
|
||||
|
||||
public static SomeClass createInstance() {
|
||||
return new SomeClass();
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
class InlineWithPrivateConstructorAccessMain {
|
||||
|
||||
public static void main(String... args) {
|
||||
InlineWithPrivateConstructorAccess.SomeClass obj = InlineWithPrivateConstructorAccess.SomeClass.create<caret>Instance();
|
||||
|
||||
}
|
||||
|
||||
}
|
||||
Reference in New Issue
Block a user