-
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #17 from gdgd009xcd/PROCOPIUS231106
23111201 PROCOPIUS231106 - new feature: added feature which is related to popup menu of CustomActiveScan - new feature: Changed behaviour of "SendMessage" popup menu. it shows animation what is doing. - maintenance: updated typical.gif
- Loading branch information
Showing
29 changed files
with
1,188 additions
and
140 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
43 changes: 43 additions & 0 deletions
43
...tomacrobuilder/src/main/java/org/zaproxy/zap/extension/automacrobuilder/GenericArray.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
package org.zaproxy.zap.extension.automacrobuilder; | ||
|
||
import java.lang.reflect.Array; | ||
|
||
/** | ||
* <P>Create Generic Array.</P><P></P> | ||
* Note: <BR>From java se api document,<BR> | ||
* The number of dimensions of the new array must not exceed 255.<BR> | ||
* GenericArray throws an IllegalArgumentException<BR> | ||
* when assigning a class with 255 or more dimensions array to type parameter T.<p></p> | ||
* @param <T> | ||
*/ | ||
public class GenericArray<T> { | ||
final private T[] genericArray; | ||
|
||
@SuppressWarnings({"cast","unchecked"}) | ||
public GenericArray(Class<T> classType, int size) { | ||
this.genericArray = (T[]) Array.newInstance(classType, size); | ||
} | ||
@SuppressWarnings({"cast","unchecked"}) | ||
public GenericArray(T object, int size) { | ||
this.genericArray = (T[]) Array.newInstance(object.getClass(), size); | ||
} | ||
|
||
@SuppressWarnings("cast") | ||
public T get(int index) { | ||
return (T) this.genericArray[index]; | ||
} | ||
|
||
public T[] getArray() { | ||
return this.genericArray; | ||
} | ||
|
||
public void set(int index, T item) { | ||
this.genericArray[index] = item; | ||
} | ||
|
||
public int size() { | ||
return this.genericArray.length; | ||
} | ||
|
||
|
||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.