Skip to content

Instantly share code, notes, and snippets.

@fermopili
Created May 23, 2017 08:19
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save fermopili/2849ebe75e6f166ecf3856389bb75e39 to your computer and use it in GitHub Desktop.
Save fermopili/2849ebe75e6f166ecf3856389bb75e39 to your computer and use it in GitHub Desktop.
com.javarush.task.task38.task3807
package com.javarush.task.task38.task3807;
/*
Предопределенные типы аннотаций (Predefined Annotation Types)
*/
@Deprecated
public class Solution
{
@Deprecated
private String[] arguments;
@Deprecated
@SafeVarargs
public Solution(String... arguments)
{
this.arguments = arguments;
}
@Deprecated
public void voidMethod() throws Exception
{
}
@Deprecated
public static void main(String[] args) throws Exception
{
new Solution ( ).new SubSolution ( ).voidMethod ( );
}
@Deprecated
class SubSolution extends Solution
{
@Deprecated
@Override
public void voidMethod() throws Exception
{
super.voidMethod ( );
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment