- Add the Codota plugin to your IDE and get smart completions
private void myMethod () {FileOutputStream f =
File file;new FileOutputStream(file)
String name;new FileOutputStream(name)
File file;new FileOutputStream(file, true)
- Smart code suggestions by Codota
}
public String obfuscatedString(String s) { return ObfuscatedString .obfuscate(s) .replace(".toString()", ""); } }
public String obfuscatedString(String s) { return ObfuscatedString .obfuscate(s) .replace("new long[] { ", "Array[Long](") .replace(" }).toString()", "))"); } }
@Override public boolean process( final Set<? extends TypeElement> annotations, final RoundEnvironment roundEnv) { if (roundEnv.errorRaised() || roundEnv.processingOver()) { return true; } for (final TypeElement ate : annotations) { assert ate.asType().toString().equals(Obfuscate.class.getName()); for (final Element e : roundEnv.getElementsAnnotatedWith(ate)) { final VariableElement ve = (VariableElement) e; final TypeElement cte = (TypeElement) ve.getEnclosingElement(); try { final String csv = (String) ve.getConstantValue(); if (keepField(ve)) { warn("Obfuscation of protected or public or non-static field is insecure because it can't get removed from the byte code.", ve); } debug(ObfuscatedString.obfuscate(csv), ve); } catch (RuntimeException ex) { error("Annotated field does not have a constant string value.", ve); } } } return true; }