代碼塊字體樣式測試

//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
//of方法源碼
    private void testOf() {
        //這裏一定會拋出異常
        DemoEntity demoEntity = null;
        Optional.of(demoEntity);
        /** 源碼:爲null直接拋空指針異常
         * public static <T> T requireNonNull(T obj) {
         *         if (obj == null)
         *             throw new NullPointerException();
         *         return obj;
         *     }
         */
    }
發佈了91 篇原創文章 · 獲贊 64 · 訪問量 6萬+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章