代码块字体样式测试

//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万+
發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章