Skip to content

Commit

Permalink
Fixed IDE warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
gastaldi committed Sep 14, 2015
1 parent 1bc9bef commit a3e1c54
Showing 1 changed file with 2 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@

import org.jboss.forge.roaster.Roaster;
import org.jboss.forge.roaster.model.Annotation;
import org.jboss.forge.roaster.model.Type;
import org.jboss.forge.roaster.model.ValuePair;
import org.jboss.forge.roaster.model.impl.TypeImpl;
import org.jboss.forge.roaster.model.source.AnnotationSource;
Expand Down Expand Up @@ -68,12 +67,12 @@ public void testCanParsePackageInfo() throws Exception
}

@Test
@SuppressWarnings({ "unchecked", "rawtypes" })
public void testPackageInfoWithImportedAnnotations()
{
JavaPackageInfoSource packageInfo = Roaster.create(JavaPackageInfoSource.class);
packageInfo.setPackage("org.jboss.forge.roaster");
Type type = new TypeImpl(packageInfo, null, MyPLAnnotation.class.getName());
packageInfo.addImport(type);
packageInfo.addImport(new TypeImpl(packageInfo, null, MyPLAnnotation.class.getName()));
packageInfo.addAnnotation("my.custom.Annotation");
packageInfo.getEnclosingType();

Expand Down

0 comments on commit a3e1c54

Please sign in to comment.