Skip to content

Commit

Permalink
add a note regarding snapshot version
Browse files Browse the repository at this point in the history
  • Loading branch information
EpicPlayerA10 committed Sep 22, 2024
1 parent 5a85dbe commit c74dd00
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 1 deletion.
3 changes: 2 additions & 1 deletion deobfuscator-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -18,11 +18,12 @@

<!--
We need to use a snapshot version of asm lib as there are some recent important changes to it
that are not in release version yet:
that are not in a release version yet:
- https://gitlab.ow2.org/asm/asm/-/merge_requests/414
- https://gitlab.ow2.org/asm/asm/-/merge_requests/415
- https://gitlab.ow2.org/asm/asm/-/merge_requests/416
-->
<!-- TODO: As we use snapshot version, we need to keep it up to date, because snapshot versions are deleted over time -->
<asm.version>9.8-20240921.152704-25</asm.version>

<log4j.version>2.23.1</log4j.version>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
package org.objectweb.asm.tree.analysis;

import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.objectweb.asm.Type;
import org.objectweb.asm.tree.AbstractInsnNode;
Expand Down Expand Up @@ -49,6 +50,7 @@ public class OriginalSourceValue extends SourceValue {
* instructions (DUP, ILOAD) and jumps to get the original source value of this instruction at line 6.
* In this example, it will return source value of instruction at line 2.
*/
@NotNull
public final OriginalSourceValue originalSource;

/**
Expand Down Expand Up @@ -81,11 +83,16 @@ public class OriginalSourceValue extends SourceValue {
@Nullable
private ConstantValue constantValue = null;

/**
* If a source value is a method parameter.
*/
private final boolean isMethodParameter;

public OriginalSourceValue(int size, boolean isMethodParameter) {
super(size, new SmallSet<>());
this.isMethodParameter = isMethodParameter;

// Fill single-producer-only fields with empty
this.copiedFrom = null;
this.originalSource = this;
}
Expand All @@ -103,6 +110,8 @@ public OriginalSourceValue(int size, AbstractInsnNode insnNode) {
public OriginalSourceValue(int size, Set<AbstractInsnNode> insnSet) {
super(size, insnSet);
this.isMethodParameter = false;

// Fill single-producer-only fields with empty
this.copiedFrom = null;
this.originalSource = this;
}
Expand Down

0 comments on commit c74dd00

Please sign in to comment.