Skip to content

Commit 4c05b1b

Browse files
committed
Remove final keyword from method params
1 parent 46b3d31 commit 4c05b1b

File tree

2 files changed

+5
-5
lines changed

2 files changed

+5
-5
lines changed

src/main/java/pl/craftserve/radiation/nms/RadiationNmsBridge.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
import java.util.Objects;
2525

2626
public interface RadiationNmsBridge {
27-
void registerLugolsIodinePotion(NamespacedKey potionKey, final LugolsIodinePotion.Config.Recipe config);
27+
void registerLugolsIodinePotion(NamespacedKey potionKey, LugolsIodinePotion.Config.Recipe config);
2828

2929
void unregisterLugolsIodinePotion(NamespacedKey potionKey);
3030

src/main/java/pl/craftserve/radiation/nms/V1_14ToV1_15NmsBridge.java

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ public class V1_14ToV1_15NmsBridge implements RadiationNmsBridge {
4242

4343
private final Object potionRegistry;
4444

45-
public V1_14ToV1_15NmsBridge(final String version) {
45+
public V1_14ToV1_15NmsBridge(String version) {
4646
Objects.requireNonNull(version, "version");
4747

4848
try {
@@ -80,7 +80,7 @@ private Class<?> getObcClass(String clazz, String version) throws ClassNotFoundE
8080
}
8181

8282
@Override
83-
public void registerLugolsIodinePotion(final NamespacedKey potionKey, final LugolsIodinePotion.Config.Recipe config) {
83+
public void registerLugolsIodinePotion(NamespacedKey potionKey, LugolsIodinePotion.Config.Recipe config) {
8484
Objects.requireNonNull(potionKey, "potionKey");
8585
Objects.requireNonNull(config, "config");
8686

@@ -99,12 +99,12 @@ public void registerLugolsIodinePotion(final NamespacedKey potionKey, final Lugo
9999
registerBrewingRecipe.setAccessible(true);
100100
registerBrewingRecipe.invoke(null, basePotion, ingredient, potion);
101101
} catch (Exception e) {
102-
logger.error("Could not handle reflective operation.", e);
102+
logger.log(Level.SEVERE, "Could not handle reflective operation.", e);
103103
}
104104
}
105105

106106
@Override
107-
public void unregisterLugolsIodinePotion(final NamespacedKey potionKey) {
107+
public void unregisterLugolsIodinePotion(NamespacedKey potionKey) {
108108
// todo unregister potion and brewing recipe
109109
}
110110
}

0 commit comments

Comments
 (0)