-
-
Notifications
You must be signed in to change notification settings - Fork 353
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix: Trim apostrophes from JDT synthetic factory methods
- Loading branch information
1 parent
f72f6cb
commit 25da71b
Showing
4 changed files
with
58 additions
and
2 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,17 @@ | ||
package spoon.testing.assertions; | ||
|
||
import java.util.function.Consumer; | ||
|
||
public interface SpoonAssert<SELF, ACTUAL> { | ||
|
||
SELF self(); | ||
|
||
ACTUAL actual(); | ||
|
||
default SELF nested(Consumer<SELF> checks) { | ||
checks.accept(self()); | ||
return self(); | ||
} | ||
|
||
void failWithMessage(String errorMessage, Object... arguments); | ||
} |
14 changes: 14 additions & 0 deletions
14
src/test/resources/noclasspath/issue5591/DiamondConstructorCallTypeInference.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,14 @@ | ||
package com.foo.bar; | ||
|
||
import java.util.ArrayList; | ||
import java.util.Collection; | ||
import java.util.List; | ||
|
||
public class DiamondConstructorCallTypeInference.java { | ||
// Whatever does not exist. | ||
private final List<? extends Whatever> items; | ||
|
||
public DiamondConstructorCallTypeInference.java(Collection<? extends Whatever> items) { | ||
this.items = new ArrayList<>(items); | ||
} | ||
} |