Pastie now auto-senses if line-wrap is a bad or good idea. Feedback?
## mark a section (Learn more)
if (targetClassName == null) { String pkg = packageName(superClass); String fullName = superClass.getName(); int ix = fullName.lastIndexOf('.'); String cName = fullName; if(ix != -1) { cName = fullName.substring(ix+1); } if (pkg.startsWith("java.") || pkg.startsWith("javax.")) { pkg = packageName(JavaProxyClassFactory.class) + ".gen"; } if(ix == -1) { targetClassName = cName + "$Proxy" + nextId(); } else { targetClassName = pkg + "." + cName + "$Proxy" + nextId(); } }
This paste will be private.
From the Design Piracy series on my blog: