Skip to content

Java Build in Annotation

Overview

import java.util.ArrayList;
import java.util.Date;
import java.util.List;

public class AnnotationDemo {
    @Override
    public String toString() {
        return "";
    }

    @Deprecated
    public static void test001() {
        System.out.println("test001");
    }
    @SuppressWarnings("all")
    public static void test002(){
        List list = new ArrayList();
        List list2 = new ArrayList();

    }
    @SuppressWarnings("all")
    public static void main(String[] args) {
        Date d = new Date();
        d.getDate();
        test001();
    }
}

Authors

  • Weiduo Sun -

License

This project is licensed under the MIT License - see the LICENSE.md file for details