Obfuscation safe reflection

Q: How to ensure that code can be obfuscated, but reflection API benefits for action invoking could be used? A: In JDK 5.0 solution exists, just use annotations. So how to do such. 1) Define appropriate annotation [code lang=”java”] @Retention(RetentionPolicy.RUNTIME) @Target(ElementType.METHOD) public @interface Call { int value(); } [/code] 2) Define reflection action to use…

Read more

High performance collections

If CPU and memory cycles are important, then higher performance collections can be considered: GNU Trove There is naturally Caveat Emptor included, i.e. incompatibility issues. However, if such collections are used inside some sub-system, then who would care?

Read more