This repository has been archived by the owner on Nov 3, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 634
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
added method parameter count validation for @DeleGate
added tests for validation cleanup unused methods
- Loading branch information
Michail Plushnikov
committed
Feb 16, 2014
1 parent
e84b3dc
commit 474f6e4
Showing
10 changed files
with
97 additions
and
89 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
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
13 changes: 13 additions & 0 deletions
13
lombok-plugin/src/test/data/inspection/delegateOnMethodWithParameter/expected.xml
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,13 @@ | ||
<?xml version="1.0" encoding="UTF-8"?> | ||
<problems> | ||
<problem> | ||
<file>Test.java</file> | ||
<line>7</line> | ||
<description>@Delegate is legal only on no-argument methods.</description> | ||
</problem> | ||
<problem> | ||
<file>Test.java</file> | ||
<line>12</line> | ||
<description>@Delegate is legal only on no-argument methods.</description> | ||
</problem> | ||
</problems> |
18 changes: 18 additions & 0 deletions
18
lombok-plugin/src/test/data/inspection/delegateOnMethodWithParameter/src/Test.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,18 @@ | ||
import java.lang.Integer; | ||
|
||
public class Example<T> { | ||
@lombok.Delegate | ||
private Integer calcDelegatorInteger() { | ||
return 1; | ||
} | ||
|
||
@lombok.Delegate | ||
private Integer calcDelegatorWithParam(int param1) { | ||
return 1; | ||
} | ||
|
||
@lombok.Delegate | ||
private Integer calcDelegatorWithParams(int param1, String param2) { | ||
return 1; | ||
} | ||
} |
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