Мелкая правка 7-й лабораторной.
This commit is contained in:
parent
fd1be311a2
commit
8feb7ccbc4
@ -55,6 +55,11 @@ public class SetPlanesGeneric<T extends Object> implements Iterable<T>
|
||||
throw new PlaneNotFoundException(position);
|
||||
}
|
||||
|
||||
if (_places.get(position) == null)
|
||||
{
|
||||
throw new PlaneNotFoundException(position);
|
||||
}
|
||||
|
||||
// удаление объекта из массива, присовив элементу массива значение null
|
||||
T temp = _places.get(position);
|
||||
_places.remove(position);
|
||||
|
Loading…
Reference in New Issue
Block a user