You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@poi.apache.org by ce...@apache.org on 2017/09/16 08:24:06 UTC

svn commit: r1808515 - in /poi/trunk/src: scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java testcases/org/apache/poi/hssf/model/TestLinkTable.java

Author: centic
Date: Sat Sep 16 08:24:05 2017
New Revision: 1808515

URL: http://svn.apache.org/viewvc?rev=1808515&view=rev
Log:
Remove unnecessary type arguments

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

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java?rev=1808515&r1=1808514&r2=1808515&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java Sat Sep 16 08:24:05 2017
@@ -254,7 +254,7 @@ public abstract class HSLFShape implemen
      * @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);
      }
 
     /**

Modified: poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java?rev=1808515&r1=1808514&r2=1808515&view=diff
==============================================================================
--- poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java (original)
+++ poi/trunk/src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java Sat Sep 16 08:24:05 2017
@@ -117,7 +117,7 @@ public class FieldsImpl implements Field
         if ( map == null || map.isEmpty() )
             return Collections.emptySet();
 
-        return Collections.<Field> unmodifiableCollection( map.values() );
+        return Collections.unmodifiableCollection( map.values() );
     }
 
     public FieldImpl getFieldByStartOffset( FieldsDocumentPart documentPart,

Modified: poi/trunk/src/testcases/org/apache/poi/hssf/model/TestLinkTable.java
URL: http://svn.apache.org/viewvc/poi/trunk/src/testcases/org/apache/poi/hssf/model/TestLinkTable.java?rev=1808515&r1=1808514&r2=1808515&view=diff
==============================================================================
--- poi/trunk/src/testcases/org/apache/poi/hssf/model/TestLinkTable.java (original)
+++ poi/trunk/src/testcases/org/apache/poi/hssf/model/TestLinkTable.java Sat Sep 16 08:24:05 2017
@@ -150,7 +150,7 @@ public final class TestLinkTable extends
 		
 		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");



---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@poi.apache.org
For additional commands, e-mail: commits-help@poi.apache.org