Remove unnecessary type arguments

git-svn-id: https://svn.apache.org/repos/asf/poi/trunk@1808515 13f79535-47bb-0310-9956-ffa450edef68
This commit is contained in:
Dominik Stadler 2017-09-16 08:24:05 +00:00
parent 4e166ebded
commit 3e70d75cfb
3 changed files with 3 additions and 3 deletions

View 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);
}
/**

View 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,

View 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");