Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;
//License from project: Apache License 

import android.text.TextUtils;

public class Main {
    /**
     * @param val  the value to check
     * @param tag   the tag to log
     */
    public static void checkEmpty(String val, String tag) {
        if (TextUtils.isEmpty(val)) {
            throw new RuntimeException(tag + " can't be empty");
        }
    }
}