]> source.dussan.org Git - poi.git/commitdiff
Remove unnecessary type arguments
authorDominik Stadler <centic@apache.org>
Sat, 16 Sep 2017 08:24:05 +0000 (08:24 +0000)
committerDominik Stadler <centic@apache.org>
Sat, 16 Sep 2017 08:24:05 +0000 (08:24 +0000)
git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808515 13f79535-47bb-0310-9956-ffa450edef68

src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java
src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java
src/testcases/org/apache/poi/hssf/model/TestLinkTable.java

index 1fb0196186d083ffee4084e229d988b3b43170b7..460b46875ef1e07590f1944af1ae7a398ce1813a 100644 (file)
@@ -254,7 +254,7 @@ public abstract class HSLFShape implements Shape<HSLFShape,HSLFTextParagraph> {
      * @return escher property or <code>null</code> if not found.
      */
      public static <T extends EscherProperty> T getEscherProperty(AbstractEscherOptRecord opt, int propId){
-         return (opt == null) ? null : opt.<T>lookup(propId);
+         return (opt == null) ? null : opt.lookup(propId);
      }
 
     /**
index 7f73e591864d5d46d440a10083312c5ea859d07e..0e2dcdbeb11e87a00a46580768fcd3835ff1b82b 100644 (file)
@@ -117,7 +117,7 @@ public class FieldsImpl implements Fields
         if ( map == null || map.isEmpty() )
             return Collections.emptySet();
 
-        return Collections.<Field> unmodifiableCollection( map.values() );
+        return Collections.unmodifiableCollection( map.values() );
     }
 
     public FieldImpl getFieldByStartOffset( FieldsDocumentPart documentPart,
index 9d3398007114acc76071dbbaa62f237b9f27cf71..d34de10923ea201b3f09e37fa29a7896fceff01f 100644 (file)
@@ -150,7 +150,7 @@ public final class TestLinkTable extends TestCase {
                
                LinkTable lt;
                try {
-                       lt = new LinkTable(recList, 0, wrl, Collections.<String, NameCommentRecord>emptyMap());
+                       lt = new LinkTable(recList, 0, wrl, Collections.emptyMap());
                } catch (RuntimeException e) {
                        if (e.getMessage().equals("Expected an EXTERNSHEET record but got (org.apache.poi.hssf.record.SSTRecord)")) {
                                throw new AssertionFailedError("Identified bug 47001b");