Skip to content

Commit

Permalink
added suppress warning annotation.
Browse files Browse the repository at this point in the history
  • Loading branch information
Ryan committed Aug 19, 2011
1 parent 60f72bf commit 3da666f
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions src/util/ApiToolsTaglet.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,16 @@

public class ApiToolsTaglet implements Taglet {

@SuppressWarnings("unchecked")
public static void register( Map tagletMap ){
ApiToolsTaglet t = new ApiToolsTaglet();
tagletMap.put( t.getName() , t );
}

public String getName(){
return "dochub";
}

public boolean inConstructor(){ return true; }
public boolean inField(){ return true; }
public boolean inMethod(){ return true; }
Expand All @@ -51,11 +52,11 @@ String genLink( String name ){
public String toString( Tag tag ){
return toString( new Tag[]{ tag } );
}

public String toString( Tag[] tags ){
if ( tags.length == 0 )
return null;

StringBuilder buf = new StringBuilder( "\n<br><DT><B>MongoDB Doc Links</B><DD>" );
buf.append( "<ul>" );
for ( Tag t : tags ){
Expand Down

0 comments on commit 3da666f

Please sign in to comment.