Add Override annotations where appropriate

By: md_5 <git@md-5.net>
This commit is contained in:
Bukkit/Spigot
2019-04-28 11:37:52 +10:00
parent d66310a2f1
commit 82854b7bd7
176 changed files with 503 additions and 0 deletions

View File

@@ -293,6 +293,7 @@ public class BlockIterator implements Iterator<Block> {
* Returns true if the iteration has more elements
*/
@Override
public boolean hasNext() {
scan();
return currentBlock != -1;
@@ -303,6 +304,7 @@ public class BlockIterator implements Iterator<Block> {
*
* @return the next Block in the trace
*/
@Override
@NotNull
public Block next() throws NoSuchElementException {
scan();
@@ -313,6 +315,7 @@ public class BlockIterator implements Iterator<Block> {
}
}
@Override
public void remove() {
throw new UnsupportedOperationException("[BlockIterator] doesn't support block removal");
}

View File

@@ -846,6 +846,7 @@ public class Vector implements Cloneable, ConfigurationSerializable {
return new Vector(random.nextDouble(), random.nextDouble(), random.nextDouble());
}
@Override
@NotNull
public Map<String, Object> serialize() {
Map<String, Object> result = new LinkedHashMap<String, Object>();