Skip to content

Commit

Permalink
Consistency of @deprecated comments for IntelliJ convert Java to Kotlin
Browse files Browse the repository at this point in the history
  • Loading branch information
bao7uo committed Jan 7, 2018
1 parent 92cbdd0 commit d58ef77
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion src/main/java/burp/IHttpRequestResponsePersisted.java
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
public interface IHttpRequestResponsePersisted extends IHttpRequestResponse
{
/**
* This method is deprecated and no longer performs any action.
* @deprecated This method is deprecated and no longer performs any action.
*/
@Deprecated
void deleteTempFiles();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/burp/IScannerInsertionPoint.java
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ public interface IScannerInsertionPoint
static final byte INS_URL_PATH_FOLDER = 0x21;
/**
* Used to indicate where the payload is inserted into a URL path folder.
* This is now deprecated; use <code>INS_URL_PATH_FOLDER</code> instead.
* @deprecated This is now deprecated; use <code>INS_URL_PATH_FOLDER</code> instead.
*/
@Deprecated
static final byte INS_URL_PATH_REST = INS_URL_PATH_FOLDER;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/burp/ITempFile.java
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public interface ITempFile
byte[] getBuffer();

/**
* This method is deprecated and no longer performs any action.
* @deprecated This method is deprecated and no longer performs any action.
*/
@Deprecated
void delete();
Expand Down

1 comment on commit d58ef77

@bao7uo
Copy link
Owner

@bao7uo bao7uo commented on d58ef77 Jan 8, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These "@deprecated" comment markers are required for IntelliJ to convert the API java files to Kotlin files correctly. When they aren't included the resulting Kotlin files have to be updated manually before they can be compiled (to avoid the following fatal error).

image

See also:
https://github.com/bao7uo/burp-extender-api-kotlin

Please sign in to comment.