Skip to content

Instantly share code, notes, and snippets.

@ZhdanRuslan
Created September 11, 2016 12:10
Show Gist options
  • Save ZhdanRuslan/1647eb4224f5370b97fe35f829ce3bbd to your computer and use it in GitHub Desktop.
Save ZhdanRuslan/1647eb4224f5370b97fe35f829ce3bbd to your computer and use it in GitHub Desktop.
Level 38, Lesson 08, Task 01
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