forked from sevntu-checkstyle/sevntu.checkstyle
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Public Reference To Private Type Check sevntu-checkstyle#195 Compilab…
…le UT inputs
- Loading branch information
1 parent
38513f0
commit 1e85e32
Showing
4 changed files
with
7 additions
and
6 deletions.
There are no files selected for viewing
2 changes: 1 addition & 1 deletion
2
...s/com/github/sevntu/checkstyle/checks/design/InputPublicReferenceToPrivateTypeCheck1.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
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
6 changes: 3 additions & 3 deletions
6
.../com/github/sevntu/checkstyle/checks/design/InputPublicReferenceToPrivateTypeCheck19.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 |
---|---|---|
@@ -1,11 +1,11 @@ | ||
package com.github.sevntu.checkstyle.checks.design; | ||
|
||
import java.util.Map; | ||
public class InputPublicReferenceToPrivateTypeCheck19 { | ||
public void render(int c, C1 d) {} // WARNING | ||
|
||
public int render(C1 c) {} //WARNING | ||
public int render(C1 c) { return 0; } //WARNING | ||
|
||
protected void someMethod(List<String, C1> s) {} //WARNING | ||
protected void someMethod(Map<String, C1> s) {} //WARNING | ||
|
||
private class C1{} | ||
} |