Skip to content

Commit

Permalink
Migrate to jetbrains annotations
Browse files Browse the repository at this point in the history
  • Loading branch information
Sollace committed Jun 10, 2021
1 parent c105467 commit 767a9ee
Show file tree
Hide file tree
Showing 7 changed files with 11 additions and 9 deletions.
8 changes: 5 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,11 @@ plugins {
id 'maven-publish'
}

targetCompatibility = JavaVersion.VERSION_16
sourceCompatibility = JavaVersion.VERSION_16
java {
toolchain {
languageVersion = JavaLanguageVersion.of(16)
}
}

def createVersion() {
def parts = []
Expand Down Expand Up @@ -57,7 +60,6 @@ dependencies {
minecraft "com.mojang:minecraft:${project.minecraft_version}"
mappings "net.fabricmc:yarn:${project.yarn_mappings}"
modApi "net.fabricmc:fabric-loader:${project.loader_version}"
compileOnly "com.google.code.findbugs:jsr305:3.0.2"

modApi fabricApi.module("fabric-api-base", project.fabric_version)
modApi fabricApi.module("fabric-lifecycle-events-v1", project.fabric_version)
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/eu/ha3/mc/quick/update/UpdateNotifier.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
import java.nio.file.Path;
import java.util.ArrayList;
import java.util.List;
import javax.annotation.Nullable;

import org.jetbrains.annotations.Nullable;
import org.apache.logging.log4j.LogManager;
import org.apache.logging.log4j.Logger;

Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.ha3.presencefootsteps;

import javax.annotation.Nullable;
import org.jetbrains.annotations.Nullable;

import com.minelittlepony.common.client.gui.GameGui;
import com.minelittlepony.common.client.gui.element.AbstractSlider;
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/eu/ha3/presencefootsteps/sound/State.java
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.ha3.presencefootsteps.sound;

import javax.annotation.Nullable;
import org.jetbrains.annotations.Nullable;

public enum State {
/**
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import net.minecraft.entity.LivingEntity;
import net.minecraft.util.math.BlockPos;

import javax.annotation.Nullable;
import org.jetbrains.annotations.Nullable;

import eu.ha3.presencefootsteps.config.Variator;
import eu.ha3.presencefootsteps.mixins.ILivingEntity;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
import java.nio.file.Path;
import java.util.function.Predicate;

import javax.annotation.Nullable;
import org.jetbrains.annotations.Nullable;

import com.google.gson.stream.JsonWriter;
import com.minelittlepony.common.util.GamePaths;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
package eu.ha3.presencefootsteps.world;

import javax.annotation.Nullable;
import org.jetbrains.annotations.Nullable;

import net.minecraft.block.BlockState;
import net.minecraft.block.Blocks;
Expand Down

0 comments on commit 767a9ee

Please sign in to comment.