Skip to content

Commit

Permalink
Merge pull request #6292 from TownyAdvanced/replace-unmodifiable-anno
Browse files Browse the repository at this point in the history
Replace unmodifiable annotation with jetbrains equivalent
  • Loading branch information
LlmDl authored Nov 12, 2022
2 parents 40cc570 + 1cdfe8f commit 8eab540
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 2 deletions.
3 changes: 3 additions & 0 deletions src/com/palmergames/annotations/Unmodifiable.java
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,9 @@
/**
* Marks whether a method returns a collection that cannot be changed.
* Specifically, elements cannot be added or removed.
*
* @deprecated Deprecated as of 0.98.4.1 in favour of {@link org.jetbrains.annotations.Unmodifiable}.
*/
@Deprecated
public @interface Unmodifiable {
}
2 changes: 1 addition & 1 deletion src/com/palmergames/bukkit/towny/TownyUniverse.java
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
package com.palmergames.bukkit.towny;

import com.google.common.base.Preconditions;
import com.palmergames.annotations.Unmodifiable;
import com.palmergames.bukkit.towny.db.TownyDataSource;
import com.palmergames.bukkit.towny.db.TownyFlatFileSource;
import com.palmergames.bukkit.towny.db.TownySQLSource;
Expand Down Expand Up @@ -34,6 +33,7 @@
import org.bukkit.block.Block;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.Unmodifiable;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down
2 changes: 1 addition & 1 deletion src/com/palmergames/bukkit/towny/object/TownyObject.java
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
package com.palmergames.bukkit.towny.object;

import com.google.common.base.Preconditions;
import com.palmergames.annotations.Unmodifiable;
import com.palmergames.bukkit.towny.object.metadata.CustomDataField;
import org.jetbrains.annotations.NotNull;
import org.jetbrains.annotations.Nullable;
import org.jetbrains.annotations.Unmodifiable;

import java.util.ArrayList;
import java.util.Arrays;
Expand Down

0 comments on commit 8eab540

Please sign in to comment.