-
Notifications
You must be signed in to change notification settings - Fork 112
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
4 changed files
with
67 additions
and
130 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
26 changes: 26 additions & 0 deletions
26
qulice-checkstyle/src/test/resources/com/qulice/checkstyle/InstanceMethodRef.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,26 @@ | ||
/** | ||
* Hello. | ||
*/ | ||
package foo; | ||
/** | ||
* Simple. | ||
* @version $Id $ | ||
* @author John Smith (john@example.com) | ||
*/ | ||
public final class InstanceMethodRef { | ||
/** | ||
* Start. Check fails in this method. | ||
*/ | ||
private void start() { | ||
Collections.singletonList("1") | ||
.forEach(this::doSomething); | ||
} | ||
/** | ||
* Method to be referenced. | ||
* @param value Value to print | ||
*/ | ||
private void doSomething(final String value) { | ||
System.out.println(value); | ||
} | ||
} | ||
|
13 changes: 13 additions & 0 deletions
13
qulice-checkstyle/src/test/resources/com/qulice/checkstyle/WindowsEol.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,13 @@ | ||
/** | ||
* Hello. | ||
* | ||
* World. | ||
*/ | ||
package foo; | ||
/** | ||
* Simple class. | ||
* @version $Id $ | ||
* @author John Doe (john@qulice.com) | ||
*/ | ||
public class WindowsEol { } | ||
|
13 changes: 13 additions & 0 deletions
13
qulice-checkstyle/src/test/resources/com/qulice/checkstyle/WindowsEolLinux.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,13 @@ | ||
/** | ||
* Welcome. | ||
* | ||
* Friend. | ||
*/ | ||
package foo; | ||
/** | ||
* Just a simple class. | ||
* @version $Id $ | ||
* @author Alex Doe (alex@qulice.com) | ||
*/ | ||
public class WindowsEolLinux { } | ||
|