import java.util.*;
import java.lang.*;
import java.lang.reflect.*;
import java.lang.annotation.*;

public class ReadForbidden {
	public static void main(String args[]) throws Exception {
		if(args.length != 1) {
			System.err.println("missing class argument");
			System.exit(-1);
		}

		String grep = "egrep '(java/lang/ClassLoader|java\\.lang\\.ClassLoader|java/lang/reflect|java\\.lang\\.reflect";

		ClassLoader cl = ClassLoader.getSystemClassLoader();
		for (String tcln : args) {
			Class newClass = cl.loadClass(tcln);
			Forbidden forbidden = (Forbidden) newClass.getAnnotation(Forbidden.class);
			for (String s : forbidden.value()) {
				String escape = s.replaceAll("\\.", "\\\\.");
				grep += "|" + escape;
				escape = s.replaceAll("\\.", "/");
				grep += "|" + escape;
			}
		}

		grep += ")'";
		System.out.println(grep);
	}
}

@@ -185,16 +185,17 @@
 n %7B%0A%09%09if
+ 
 (args.le
@@ -203,12 +203,12 @@
 gth 
-!= 1
+== 0
 ) %7B%0A

Fix array length check.