Created
September 11, 2016 12:10
-
-
Save ZhdanRuslan/1647eb4224f5370b97fe35f829ce3bbd to your computer and use it in GitHub Desktop.
Level 38, Lesson 08, Task 01
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
package com.javarush.test.level38.lesson08.task01; | |
/* Предопределенные типы аннотаций (Predefined Annotation Types) | |
Расставьте в этом классе, везде где только можно, все возможные предопределенные в Java аннотации. | |
Не должно быть избыточности. | |
*/ | |
@SuppressWarnings("deprecation") | |
@Deprecated | |
public class Solution { | |
@SuppressWarnings("unused") | |
@Deprecated | |
private String[] arguments; | |
@SafeVarargs | |
@Deprecated | |
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 { | |
@Override | |
@Deprecated | |
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