Logo

GitLab

Sign in

Xinwen Deng / aem-src

  • Back to Dashboard
  • Project
  • Activity
  • Files
  • Commits
  • Network
  • Graphs
  • Milestones
  • Issues 0
  • Merge Requests 0
  • Labels
  • Wiki
  • aem-src
  • com
  • adobe
  • agl
  • impl
  • Assert.java
  • init
    bdc5fceb
    Xinwen Deng authored
    2016-10-05 14:44:38 +0800  
    Browse Code ยป
Assert.java 433 Bytes
Edit Raw Blame History Permalink
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21
/*
 * Decompiled with CFR 0_118.
 */
package com.adobe.agl.impl;

public class Assert {
    public static void fail(Exception e) {
        Assert.fail(e.toString());
    }

    public static void fail(String msg) {
        throw new IllegalStateException("failure '" + msg + "'");
    }

    public static void assrt(boolean val) {
        if (!val) {
            throw new IllegalStateException("assert failed");
        }
    }
}