@@ -22,7 +22,7 @@ SCENARIO(
22
22
load_java_class (" InnerClasses" , " ./java_bytecode/java_bytecode_parser" );
23
23
WHEN (" Parsing the InnerClasses attribute for a public inner class" )
24
24
{
25
- THEN (" The class should be marked as public" )
25
+ THEN (" The inner class should be marked as public" )
26
26
{
27
27
const symbolt &class_symbol =
28
28
new_symbol_table.lookup_ref (" java::InnerClasses$PublicInnerClass" );
@@ -35,7 +35,7 @@ SCENARIO(
35
35
}
36
36
WHEN (" Parsing the InnerClasses attribute for a package private inner class" )
37
37
{
38
- THEN (" The class should be marked as default" )
38
+ THEN (" The inner class should be marked as default" )
39
39
{
40
40
const symbolt &class_symbol =
41
41
new_symbol_table.lookup_ref (" java::InnerClasses$DefaultInnerClass" );
@@ -48,7 +48,7 @@ SCENARIO(
48
48
}
49
49
WHEN (" Parsing the InnerClasses attribute for a protected inner class" )
50
50
{
51
- THEN (" The class should be marked as protected" )
51
+ THEN (" The inner class should be marked as protected" )
52
52
{
53
53
const symbolt &class_symbol =
54
54
new_symbol_table.lookup_ref (" java::InnerClasses$ProtectedInnerClass" );
@@ -61,7 +61,7 @@ SCENARIO(
61
61
}
62
62
WHEN (" Parsing the InnerClasses attribute for a private inner class" )
63
63
{
64
- THEN (" The class should be marked as private" )
64
+ THEN (" The inner class should be marked as private" )
65
65
{
66
66
const symbolt &class_symbol =
67
67
new_symbol_table.lookup_ref (" java::InnerClasses$PrivateInnerClass" );
@@ -73,7 +73,9 @@ SCENARIO(
73
73
}
74
74
}
75
75
}
76
- GIVEN (" Some package-private class files in the class path with inner classes" )
76
+ GIVEN (
77
+ " Some package-private (default) class files in the class path with inner "
78
+ " classes" )
77
79
{
78
80
const symbol_tablet &new_symbol_table = load_java_class (
79
81
" InnerClassesDefault" , " ./java_bytecode/java_bytecode_parser" );
@@ -90,9 +92,11 @@ SCENARIO(
90
92
REQUIRE (java_class.get_access () == ID_public);
91
93
}
92
94
}
93
- WHEN (" Parsing the InnerClasses attribute for a package private inner class" )
95
+ WHEN (
96
+ " Parsing the InnerClasses attribute for a package private (default) "
97
+ " inner class" )
94
98
{
95
- THEN (" The class should be marked as default" )
99
+ THEN (" The inner class should be marked as package-private ( default) " )
96
100
{
97
101
const symbolt &class_symbol = new_symbol_table.lookup_ref (
98
102
" java::InnerClassesDefault$DefaultInnerClass" );
@@ -118,7 +122,7 @@ SCENARIO(
118
122
}
119
123
WHEN (" Parsing the InnerClasses attribute for a private inner class" )
120
124
{
121
- THEN (" The class should be marked as private" )
125
+ THEN (" The inner class should be marked as private" )
122
126
{
123
127
const symbolt &class_symbol = new_symbol_table.lookup_ref (
124
128
" java::InnerClassesDefault$PrivateInnerClass" );
@@ -154,10 +158,10 @@ SCENARIO(
154
158
}
155
159
}
156
160
WHEN (
157
- " Parsing the InnerClasses attribute for a package private doubly-nested "
158
- " inner class" )
161
+ " Parsing the InnerClasses attribute for a package private (default) "
162
+ " doubly-nested inner class" )
159
163
{
160
- THEN (" The class should be marked as default" )
164
+ THEN (" The inner class should be marked as package-private ( default) " )
161
165
{
162
166
const symbolt &class_symbol = new_symbol_table.lookup_ref (
163
167
" java::InnerClassesDeeplyNested$SinglyNestedClass$"
@@ -170,10 +174,10 @@ SCENARIO(
170
174
}
171
175
}
172
176
WHEN (
173
- " Parsing the InnerClasses attribute for a protected doubly-nested inner "
174
- " class" )
177
+ " Parsing the InnerClasses attribute for a package private (default) "
178
+ " doubly-nested inner class " )
175
179
{
176
- THEN (" The class should be marked as protected" )
180
+ THEN (" The inner class should be marked as protected" )
177
181
{
178
182
const symbolt &class_symbol = new_symbol_table.lookup_ref (
179
183
" java::InnerClassesDeeplyNested$SinglyNestedClass$"
@@ -189,7 +193,7 @@ SCENARIO(
189
193
" Parsing the InnerClasses attribute for a private doubly-nested inner "
190
194
" class" )
191
195
{
192
- THEN (" The class should be marked as private" )
196
+ THEN (" The inner class should be marked as private " )
193
197
{
194
198
const symbolt &class_symbol = new_symbol_table.lookup_ref (
195
199
" java::InnerClassesDeeplyNested$SinglyNestedClass$"
0 commit comments