forked from projectlombok/lombok
-
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.
Added fix for projectlombok#156 "Exception in @Singular handling"
Removed wrong type cast
- Loading branch information
Michail Plushnikov
committed
Jan 13, 2016
1 parent
3245d57
commit 8e2b568
Showing
5 changed files
with
23 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
1 change: 1 addition & 0 deletions
1
lombok-plugin/src/main/resources/messages/lombokBundle.properties
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
19 changes: 19 additions & 0 deletions
19
test-manual/lombok/src/main/java/de/plushnikov/builder/issue156/StringMapBuilder.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,19 @@ | ||
package de.plushnikov.builder.issue156; | ||
|
||
import lombok.Builder; | ||
import lombok.Singular; | ||
|
||
import java.util.HashMap; | ||
import java.util.Map; | ||
|
||
public class StringMapBuilder<R> extends HashMap<String, R>{ | ||
|
||
@Builder | ||
StringMapBuilder(@Singular Map<String, ? extends R> entries) { | ||
super(entries); | ||
} | ||
|
||
public static void main(String[] args) { | ||
|
||
} | ||
} |