File tree Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Expand file tree Collapse file tree 1 file changed +8
-1
lines changed Original file line number Diff line number Diff line change @@ -1761,6 +1761,13 @@ NONLopt [^\n]*
17611761 if (yyextra->insideJava )
17621762 {
17631763 yyextra->current ->section = EntryType::makeClass ();
1764+ yyextra->current ->protection = Protection::Public;
1765+ if (text.find (" protected" )!=-1 )
1766+ yyextra->current ->protection = Protection::Protected;
1767+ else if (text.find (" private" )!=-1 )
1768+ yyextra->current ->protection = Protection::Private;
1769+ else if (text.find (" package" )!=-1 )
1770+ yyextra->current ->protection = Protection::Package;
17641771 yyextra->current ->spec = TypeSpecifier ().setEnum (true );
17651772 }
17661773 else
@@ -7318,7 +7325,7 @@ static void initEntry(yyscan_t yyscanner)
73187325 {
73197326 yyextra->protection = (yyextra->current_root->spec.isInterface() || yyextra->current_root->spec.isEnum()) ? Protection::Public : Protection::Package;
73207327 }
7321- yyextra->current->protection = yyextra->protection ;
7328+ yyextra->current->protection = yyextra->protection;
73227329 yyextra->current->exported = yyextra->exported ;
73237330 yyextra->current->mtype = yyextra->mtype;
73247331 yyextra->current->virt = yyextra->virt;
You can’t perform that action at this time.
0 commit comments