-
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.
fix: fixed the calculation of picnic rules key (#11)
* fix: fixed the calculation of picnic rules key Look for the picnic doc url in the error message so we can locate the rule from the correct repository. Updated the integration tests to look for picnic issues
- Loading branch information
Showing
4 changed files
with
66 additions
and
16 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
15 changes: 15 additions & 0 deletions
15
src/test/resources/samples/com/bug/PicnicErrorProneSupportSample.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,15 @@ | ||
package com.bug; | ||
|
||
import com.google.common.collect.ImmutableSet; | ||
import java.math.BigDecimal; | ||
|
||
public class PicnicErrorProneSupportSample { | ||
static BigDecimal getNumber() { | ||
return BigDecimal.valueOf(0); | ||
} | ||
|
||
public ImmutableSet<Integer> getSet() { | ||
ImmutableSet<Integer> set = ImmutableSet.of(1); | ||
return ImmutableSet.copyOf(set); | ||
} | ||
} |