ensure enum constructors are private (IDEA-139065)

This commit is contained in:
Anna Kozlova
2015-05-12 17:07:08 +02:00
parent f9fd72ebac
commit fdbfd64350
3 changed files with 7 additions and 2 deletions
@@ -38,7 +38,7 @@ enum Operation {
<error descr="'valueOf(String)' is already defined in 'Operation'">void valueOf(String s)</error> {}
}
class exte extends <error descr="Cannot inherit from final 'Operation'">Operation</error> {
<error descr="There is no default constructor available in 'Operation'">class exte extends <error descr="Cannot inherit from final 'Operation'">Operation</error></error> {
}
class use {
@@ -38,7 +38,7 @@ enum Operation {
<error descr="'valueOf(String)' is already defined in 'Operation'">void valueOf(String s)</error> {}
}
class exte extends <error descr="Cannot inherit from final 'Operation'">Operation</error> {
<error descr="There is no default constructor available in 'Operation'">class exte extends <error descr="Cannot inherit from final 'Operation'">Operation</error></error> {
}
class use {