Constants for @SuppressWarnings annotations
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
Sebastian Hoß 22a50ad832
Update maintenance badge
3 years ago
AUTHORS permissions + latest parent 4 years ago
build/docker fix header 4 years ago
src/main/java/de/xn__ho_hia/quality/suppression update groupId, fix #4 4 years ago
.gitignore ignore ansible markers 3 years ago
.travis.yml fix coverity scan on travis 3 years ago
CHANGELOG.asciidoc add changelog, coc & contributing 3 years ago
CODE_OF_CONDUCT.asciidoc convert markdown -> asciidoc 3 years ago
CONTRIBUTING.asciidoc add changelog, coc & contributing 3 years ago
LICENSE Fix #3 4 years ago
Makefile fix update-maintenance-badge goal 3 years ago
README.asciidoc Update maintenance badge 3 years ago
bnd.bnd add bnd file 4 years ago
maven-version-rules.xml add missing version rules file 4 years ago
pom.xml Update to latest parent 4 years ago


= Suppress-Warnings image:["Discuss on Google Groups", link="!forum/metio"] image:["Chat on IRC", link=""]
Sebastian Hoß <[@sebhoss]>
:github-org: sebhoss
:project-name: suppress-warnings
:project-group: de.xn--ho-hia.quality
:coverity-project: 9346
:codacy-project: a6b59a4e42104e6492cb46961b195e5e

image:["CC Zero", link=""]
pass:[<span class="image"><a class="image" href=""><img src="" alt="Maven Central"></a></span>]
pass:[<span class="image"><a class="image" href=""><img src="" alt="Read JavaDocs"></a></span>]
image:{github-org}/{project-name}&style=flat-square["Repository size"]
image:{project-name}/widgets/project_thin_badge.gif["Open Hub statistics", link="{project-name}"]

image:{github-org}/{project-name}/master.svg?style=flat-square["Build Status", link="{github-org}/{project-name}"]
image:{coverity-project}.svg?style=flat-square["Coverity Scan Result", link="{github-org}-{project-name}"]
image:{codacy-project}.svg?style=flat-square["Codacy Code Quality", link="{project-name}"]
image:["Can this project be forked?", link="{github-org}&r={project-name}"]
image:["Is this thing still maintained?"]
image:["Bounties on open tickets", link=""]

Java utility library which contains constants for `@SuppressWarnings` annotations.

== Usage

Use the `CompilerWarnings` class to suppress compiler warnings like this:

[source, java]
final String myText = "hello world!";

Add `de.xn__ho_hia.quality.suppression.CompilerWarnings.*` as a favorite to your IDE, e.g. use `Java > Editor > Content Assist > Favorites` in Eclipse. This allows will instruct Eclipse to auto import the constant you specified statically which reduces the code to this:

[source, java]
final String myText = "hello world!";

Take a look at the pass:[<a href="">JavaDoc</a>] to see a list of all available constants. All of them contain a (short) description which should help out developers who have not seen those suppressions before. Referencing those constants instead of using plain strings will make sure that all suppressions are correct.

=== Integration

To use this project just declare the following dependency inside your POM:

[source, xml, subs="attributes,verbatim"]

Replace `${version.suppress-warnings}` with the pass:[<a href="">latest release</a>]. This project follows the[semantic versioning] guidelines.

=== Compatibility

This project is compatible with the following Java versions:

.Java compatibility
| | 4.X.Y

| Java 8
| ✓

== License

To the extent possible under law, the author(s) have dedicated all copyright
and related and neighboring rights to this software to the public domain
worldwide. This software is distributed without any warranty.

You should have received a copy of the CC0 Public Domain Dedication along
with this software. If not, see

== Mirrors