Hiding default constructor with respect to its access modifiers
This commit is contained in:
committed by
Roman Shevchenko
parent
02fdbec132
commit
2431c0fe94
BIN
testData/classes/pkg/TestPrivateEmptyConstructor.class
Normal file
BIN
testData/classes/pkg/TestPrivateEmptyConstructor.class
Normal file
Binary file not shown.
26
testData/results/TestPrivateEmptyConstructor.dec
Normal file
26
testData/results/TestPrivateEmptyConstructor.dec
Normal file
@@ -0,0 +1,26 @@
|
||||
public final class TestPrivateEmptyConstructor {
|
||||
private TestPrivateEmptyConstructor() {
|
||||
}// 4
|
||||
|
||||
public final void test() {
|
||||
System.out.println("test");// 7
|
||||
}// 8
|
||||
}
|
||||
|
||||
class 'TestPrivateEmptyConstructor' {
|
||||
method '<init> ()V' {
|
||||
4 2
|
||||
}
|
||||
|
||||
method 'test ()V' {
|
||||
0 5
|
||||
3 5
|
||||
5 5
|
||||
8 6
|
||||
}
|
||||
}
|
||||
|
||||
Lines mapping:
|
||||
4 <-> 3
|
||||
7 <-> 6
|
||||
8 <-> 7
|
||||
10
testData/src/pkg/TestPrivateEmptyConstructor.java
Normal file
10
testData/src/pkg/TestPrivateEmptyConstructor.java
Normal file
@@ -0,0 +1,10 @@
|
||||
|
||||
public final class PrivateEmptyConstructor {
|
||||
|
||||
private PrivateEmptyConstructor() {}
|
||||
|
||||
public final void test() {
|
||||
System.out.println("test");
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user