yWorks / yGuard

The open-source Java obfuscation tool working with Ant and Gradle by yWorks - the diagramming experts

Home Page:https://yworks.github.io/yGuard/

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

all method param after obscure are change like paramXXXX

Gh-Levi opened this issue · comments

my springboot controller after confused like below,i want to ask if there has any way don't change param name
--------after confused-------
@GetMapping({"{id}"})
@operation(summary = ")
public R getDeviceModel(@PathVariable Long paramLong)
---------before confused-----------
@GetMapping({"{id}"})
@operation(summary = ")
public R getDeviceModel(@PathVariable Long id)

This information is part of the optional local variable name table in class files. As such, you need to keep yguard from removing this information.

https://yworks.github.io/yGuard/task_documentation.html#the-keep-element

<attribute name="LocalVariableTable">
  <patternset>
    <include name="com.mycompany.mylibrary.**"/>
  </patternset>
</attribute>

This will retain the attribute named "LocalVariableTable".

This information is part of the optional local variable name table in class files. As such, you need to keep yguard from removing this information.

https://yworks.github.io/yGuard/task_documentation.html#the-keep-element

<attribute name="LocalVariableTable">
  <patternset>
    <include name="com.mycompany.mylibrary.**"/>
  </patternset>
</attribute>

This will retain the attribute named "LocalVariableTable".

that's awesome! thansks