📄 boilerplate.pro
字号:
# Keep - Applications. Keep all application classes that have a main method.-keepclasseswithmembers public class * { public static void main(java.lang.String[]);}# Keep - Applets. Keep all extensions of java.applet.Applet.-keep public class * extends java.applet.Applet# Keep - Servlets. Keep all extensions of javax.servlet.Servlet.-keep public class * extends javax.servlet.Servlet# Keep - Midlets. Keep all extensions of javax.microedition.midlet.MIDlet.-keep public class * extends javax.microedition.midlet.MIDlet# Keep - Xlets. Keep all extensions of java.tv.xlet.Xlet.-keep public class * extends java.tv.xlet.Xlet# Keep - Library. Keep all externally accessible classes, fields, and methods.-keep public class * { public protected <fields>; public protected <methods>;}# Also keep - Enumerations. Keep special static methods that are required in# enumeration classes.-keepclassmembers class * extends java.lang.Enum { public static **[] values(); public static ** valueOf(java.lang.String);}# Also keep - Serialization code. Keep all fields and methods that are# used for serialization.-keepclassmembers class * extends java.io.Serializable { static final long serialVersionUID; private void writeObject(java.io.ObjectOutputStream); private void readObject(java.io.ObjectInputStream); java.lang.Object writeReplace(); java.lang.Object readResolve();}# Also keep - BeanInfo classes. Keep all classes that implement the# BeanInfo interface.-keep class * implements java.beans.BeanInfo# Also keep - Bean classes. Keep all bean classes along with their getters# and setters.-keep class * { void set*(%); void set*(**); void set*(%[]); void set*(**[]); void set*(int, %); void set*(int, **); % get*(); ** get*(); %[] get*(); **[] get*(); % get*(int); ** get*(int);}# Also keep - Database drivers. Keep any implementations of java.sql.Driver.-keep class * implements java.sql.Driver# Also keep - Swing UI L&F. Keep all classes that extend the ComponentUI class,# along with the special static method that is required.-keep class * extends javax.swing.plaf.ComponentUI { public static javax.swing.plaf.ComponentUI createUI(javax.swing.JComponent);}# Also keep - RMI interfaces. Keep all Remote interfaces and their methods.-keep interface * extends java.rmi.Remote { <methods>;}# Also keep - RMI implementations. Keep all Remote implementations. This# includes any explicit or implicit Activatable implementations with their# two-argument constructors.-keep class * implements java.rmi.Remote { <init>(java.rmi.activation.ActivationID, java.rmi.MarshalledObject);}# Keep names - Native method names. Keep all native class/method names.-keepclasseswithmembernames class * { native <methods>;}# Keep names - _class method names. Keep all .class method names. Useful for# libraries that will be obfuscated again.-keepclassmembernames class * { java.lang.Class class$(java.lang.String); java.lang.Class class$(java.lang.String, boolean);}# Remove - System method calls. Remove all invocations of System# methods without side effects whose return values are not used.-assumenosideeffects public class java.lang.System { public static long currentTimeMillis(); static java.lang.Class getCallerClass(); public static int identityHashCode(java.lang.Object); public static java.lang.SecurityManager getSecurityManager(); public static java.util.Properties getProperties(); public static java.lang.String getProperty(java.lang.String); public static java.lang.String getenv(java.lang.String); public static java.lang.String mapLibraryName(java.lang.String); public static java.lang.String getProperty(java.lang.String,java.lang.String);}# Remove - Math method calls. Remove all invocations of Math# methods without side effects whose return values are not used.-assumenosideeffects public class java.lang.Math { public static double sin(double); public static double cos(double); public static double tan(double); public static double asin(double); public static double acos(double); public static double atan(double); public static double toRadians(double); public static double toDegrees(double); public static double exp(double); public static double log(double); public static double log10(double); public static double sqrt(double); public static double cbrt(double); public static double IEEEremainder(double, double); public static double ceil(double); public static double floor(double); public static double rint(double); public static double atan2(double, double); public static double pow(double, double); public static int round(float); public static long round(double); public static double random(); public static int abs(int); public static long abs(long); public static float abs(float); public static double abs(double); public static int max(int, int); public static long max(long, long); public static float max(float, float); public static double max(double, double); public static int min(int, int); public static long min(long, long); public static float min(float, float); public static double min(double, double); public static double ulp(double); public static float ulp(float); public static double signum(double); public static float signum(float); public static double sinh(double); public static double cosh(double); public static double tanh(double); public static double hypot(double, double); public static double expm1(double); public static double log1p(double);}# Remove - Number method calls. Remove all invocations of Number# methods without side effects whose return values are not used.-assumenosideeffects public class java.lang.* extends java.lang.Number { public static java.lang.String toString(byte); public static java.lang.Byte valueOf(byte); public static byte parseByte(java.lang.String); public static byte parseByte(java.lang.String,int); public static java.lang.Byte valueOf(java.lang.String,int); public static java.lang.Byte valueOf(java.lang.String); public static java.lang.Byte decode(java.lang.String); public int compareTo(java.lang.Byte); public static java.lang.String toString(short); public static short parseShort(java.lang.String); public static short parseShort(java.lang.String,int); public static java.lang.Short valueOf(java.lang.String,int); public static java.lang.Short valueOf(java.lang.String); public static java.lang.Short valueOf(short); public static java.lang.Short decode(java.lang.String); public static short reverseBytes(short); public int compareTo(java.lang.Short); public static java.lang.String toString(int,int); public static java.lang.String toHexString(int); public static java.lang.String toOctalString(int); public static java.lang.String toBinaryString(int); public static java.lang.String toString(int); public static int parseInt(java.lang.String,int); public static int parseInt(java.lang.String); public static java.lang.Integer valueOf(java.lang.String,int); public static java.lang.Integer valueOf(java.lang.String); public static java.lang.Integer valueOf(int); public static java.lang.Integer getInteger(java.lang.String); public static java.lang.Integer getInteger(java.lang.String,int); public static java.lang.Integer getInteger(java.lang.String,java.lang.Integer); public static java.lang.Integer decode(java.lang.String); public static int highestOneBit(int); public static int lowestOneBit(int); public static int numberOfLeadingZeros(int); public static int numberOfTrailingZeros(int); public static int bitCount(int); public static int rotateLeft(int,int); public static int rotateRight(int,int); public static int reverse(int); public static int signum(int); public static int reverseBytes(int); public int compareTo(java.lang.Integer); public static java.lang.String toString(long,int);
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -