-
Notifications
You must be signed in to change notification settings - Fork 111
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
6 changed files
with
29 additions
and
3 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -5,8 +5,6 @@ on: | |
push: | ||
branches: [ master ] | ||
pull_request: | ||
branches: [ master ] | ||
|
||
|
||
jobs: | ||
test: | ||
|
18 changes: 18 additions & 0 deletions
18
src/main/java/com/amazon/ion/_private/SuppressFBWarnings.kt
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,18 @@ | ||
// Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved. | ||
// SPDX-License-Identifier: Apache-2.0 | ||
package com.amazon.ion._private | ||
|
||
/** | ||
* SpotBugs looks for an annotation called `SuppressFBWarnings` regardless of the package it is in. | ||
* This will allow us to disable some SpotBugs rules when we want e.g. to allow switch case fallthrough. | ||
* | ||
* We are implementing our own annotation so that we don't have to declare any dependency on another package just for this. | ||
*/ | ||
annotation class SuppressFBWarnings( | ||
/** | ||
* The set of FindBugs/SpotBugs warnings that are to be suppressed in the annotated element. | ||
* The value can be a bug category, kind, or pattern. | ||
* For examples of some bug types, see https://spotbugs.readthedocs.io/en/stable/bugDescriptions.html | ||
*/ | ||
vararg val value: String = [] | ||
) |
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