Removed warning by making method final