Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -259,6 +259,12 @@ public enum DefinedFaultCategory implements FaultCategory {
this.fullDescription = Objects.requireNonNull(fullDescription);
}

@Override
public String getId(){
//return the name of the enum
return super.name();
}

@Override
public int getCode() {
return code;
Expand Down
11 changes: 10 additions & 1 deletion src/main/java/com/webfuzzing/commons/faults/FaultCategory.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,18 @@

public interface FaultCategory {

/**
* A unique string that uniquely identify this fault category.
* This id is meant to be stable, and should not change among different releases of WFC.
* Fuzzer developers should be able to rely on these ids not changing.
* If for any reason an id must be changed, then that would trigger a new major release of WFC.
* Note the "code" are meant to be stable as well, however, those "might" change between minor releases.
*/
public String getId();


/**
* A unique code identifying this fault category
* A unique, 3-digit code identifying this fault category
*/
public int getCode();

Expand Down
Loading
Loading