Skip to content

Commit 53ef276

Browse files
committed
chore: cleanup unused suppression annotation
1 parent 7cc36c2 commit 53ef276

File tree

8 files changed

+1
-7
lines changed

8 files changed

+1
-7
lines changed

src/main/java/org/spongepowered/api/block/transaction/BlockTransaction.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,6 @@ public int hashCode() {
7171
return Objects.hash(super.hashCode(), this.operation);
7272
}
7373

74-
@SuppressWarnings("rawtypes")
7574
@Override
7675
public boolean equals(final Object obj) {
7776
if (this == obj) {

src/main/java/org/spongepowered/api/data/persistence/DataContainer.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,6 @@
3030
* Represents a data structure that contains data. A DataContainer is
3131
* an object that can be considered a root {@link DataView}.
3232
*/
33-
@SuppressWarnings("deprecation")
3433
public interface DataContainer extends DataView {
3534

3635
/**

src/main/java/org/spongepowered/api/data/persistence/DataStore.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ interface SerializersStep extends HolderStep, ResettableBuilder<DataStore, Build
243243
*
244244
* @return this builder for chaining
245245
*/
246-
@SuppressWarnings("unchecked")
247246
Builder.EndStep keys(final Key<?> key, final Key<?>... moreKeys);
248247

249248
/**

src/main/java/org/spongepowered/api/entity/Entity.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,6 @@
7676
*
7777
* <p>Blocks and items (when they are in inventories) are not entities.</p>
7878
*/
79-
@SuppressWarnings("deprecation")
8079
@DoNotStore
8180
public interface Entity extends Identifiable, HoverEventSource<HoverEvent.ShowEntity>, Locatable, EntityProjectileSource, Sound.Emitter,
8281
SerializableDataHolder.Mutable, RandomProvider {

src/main/java/org/spongepowered/api/event/lifecycle/RegisterDataPackValueEvent.java

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@
2929
import org.spongepowered.api.event.GenericEvent;
3030
import org.spongepowered.api.util.annotation.eventgen.NoFactoryMethod;
3131

32+
@SuppressWarnings("rawtypes")
3233
@NoFactoryMethod
3334
public interface RegisterDataPackValueEvent<T extends DataPackEntry> extends LifecycleEvent, GenericEvent<T> {
3435

src/main/java/org/spongepowered/api/item/recipe/cooking/CookingResult.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,6 @@ public final class CookingResult {
4545
* @param result The result of the cooking recipe
4646
* @param experience The experience that should be created from this result
4747
*/
48-
@SuppressWarnings("ConstantConditions")
4948
public CookingResult(final ItemStackSnapshot result, final double experience) {
5049
Objects.requireNonNull(result, "result");
5150
if (result.isEmpty()) {

src/main/java/org/spongepowered/api/item/recipe/crafting/RecipeResult.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -50,7 +50,6 @@ public final class RecipeResult {
5050
* @param remainingItems The remaining items to leave in the
5151
* crafting window
5252
*/
53-
@SuppressWarnings("ConstantConditions")
5453
public RecipeResult(ItemStackSnapshot result, List<ItemStackSnapshot> remainingItems) {
5554
Objects.requireNonNull(result, "result");
5655
if (result.isEmpty()) {

src/main/java/org/spongepowered/api/tag/TagTemplate.java

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,6 @@ public interface TagTemplate<T extends Taggable<T>> extends DataPackEntry<TagTem
4747
* @param pack The {@link DataPack} of the builder
4848
* @return The builder.
4949
*/
50-
@SuppressWarnings("unchecked")
5150
static <T extends Taggable<T>> Builder<T> builder(final DataPack<TagTemplate<T>> pack) {
5251
return Sponge.game().factoryProvider().provide(Factory.class).builder(pack);
5352
}

0 commit comments

Comments
 (0)