mirror of
https://github.com/projectdiscovery/nuclei.git
synced 2026-02-06 18:43:09 +08:00
Started work on java deserialization helpers
This commit is contained in:
15
v2/pkg/protocols/common/helpers/deserialization/testdata/ValueObject.java
vendored
Normal file
15
v2/pkg/protocols/common/helpers/deserialization/testdata/ValueObject.java
vendored
Normal file
@@ -0,0 +1,15 @@
|
||||
import java.io.*;
|
||||
|
||||
public class ValueObject implements Serializable {
|
||||
private String value;
|
||||
private String sideEffect;
|
||||
|
||||
public ValueObject() {
|
||||
this("empty");
|
||||
}
|
||||
|
||||
public ValueObject(String value) {
|
||||
this.value = value;
|
||||
this.sideEffect = java.time.LocalTime.now().toString();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user