Main.java Source code

Java tutorial

Introduction

Here is the source code for Main.java

Source

//package com.java2s;

public class Main {
    private static String[] EXCLUDED_OBJECT_PACKAGE_PREFIXES = { "java.", "android." };

    public static boolean shouldBeExcluded(Class clazz) {
        String package_ = clazz.getPackage().getName();
        for (String i : EXCLUDED_OBJECT_PACKAGE_PREFIXES)
            if (package_.startsWith(i))
                return true;

        return false;
    }
}