From 27753bb8d1bfe1b1e7167eecfacc504c8894c549 Mon Sep 17 00:00:00 2001 From: asri71 Date: Sat, 16 Mar 2019 12:23:10 +0530 Subject: [PATCH] Removing inheritance from Vector class --- src/main/java/com/dataStructures/Stack.java | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/src/main/java/com/dataStructures/Stack.java b/src/main/java/com/dataStructures/Stack.java index 5298d652..aed57bd9 100644 --- a/src/main/java/com/dataStructures/Stack.java +++ b/src/main/java/com/dataStructures/Stack.java @@ -2,9 +2,8 @@ package src.main.java.com.dataStructures; import java.io.Serializable; import java.util.EmptyStackException; -import java.util.Vector; -public class Stack extends Vector implements Serializable { +public class Stack implements Serializable { /** * Inital capacity alloted to stack on object creation