-
Notifications
You must be signed in to change notification settings - Fork 21
3 Rules
When you input class, the name should contains full package name and class name.
The basic type like int and Integer, boolen and Boolean cannot auto box/unbox. If a method need a Integer param, you cannot pass a int, new Integer(123) is ok.
When you use Watch, you can see 3 print format:
-
toStringjust call theObject#toString -
Jsonuse jackson to serialize to a json string -
Prettyuse PrettyObject lib to print the object.
If you add a transformer, for example Watch a method in class A, then Watch same method again. These two transforms will be strung together and take effect in sequence.
For example, watch base64 by toString Json and Pretty in sequence. So be careful to delete transformer, when you add too many. Especially, remove the middle transformer, when it is depends on the previous one.
These feature effects in limited times, by default 100. You can change the default value when you start. The properties starts with w_ will be throw to the jvm process, well, removing the prefix w_.
$ java -jar -Dw_maxHit=10 swapper.jar