• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 328
  • Last Modified:

SortedHashSet Error 2

Hi some of u might have answered my previous question. Thank you. now i have these following problems.

heres my code

import java.io.*;
import java.lang.*;
import java.util.*;

class SortedHashSet<T> extends TreeSet<T> { // inherit from TreeSet
      private HashSet<T> hashobject;

      public SortedHashSet (){
            hashobject = new HashSet<T>(); //create new HashSet object
      public boolean add(T item){
            return super.add(item) && hashobject.add(item);
                public void clear(){
      public boolean contains(Object item){
            return hashobject.contains(item);
      public boolean remove(Object item){
            return super.remove(item) && hashobject.remove(item);

then i get the following errors

SortedHashSet.add was missing return tag.
SortedHashSet.contains was missing return tag.
SortedHashSet.remove was missing return tag.

can anyone please help me with this?
  • 2
1 Solution
That looks like javadoc errors.

a. They could be ignored
b. You could 'turn off' strict javadoc checking
c. You could include the correct javadoc tags

Obviously option c. is best
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

Join & Write a Comment

Featured Post

Cloud Class® Course: CompTIA Cloud+

The CompTIA Cloud+ Basic training course will teach you about cloud concepts and models, data storage, networking, and network infrastructure.

  • 2
Tackle projects and never again get stuck behind a technical roadblock.
Join Now