forked from INRIA/spoon
-
Notifications
You must be signed in to change notification settings - Fork 3
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 (#25)
* fix: Trim apostrophes from JDT synthetic factory methods Co-authored-by: Hannes Greule <[email protected]> Co-authored-by: Martin Wittlinger <[email protected]> * try fix test * try fix test * try fix test * try fix test --------- Co-authored-by: I-Al-Istannen <[email protected]> Co-authored-by: Hannes Greule <[email protected]> Co-authored-by: Martin Wittlinger <[email protected]>
- Loading branch information
1 parent
2626658
commit db25dee
Showing
5 changed files
with
59 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
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); | ||
} | ||
} |