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:
parent
50beafbb47
commit
d4070f05e7
@ -254,7 +254,7 @@ public abstract class HSLFShape implements Shape<HSLFShape,HSLFTextParagraph> {
|
|||||||
* @return escher property or <code>null</code> if not found.
|
* @return escher property or <code>null</code> if not found.
|
||||||
*/
|
*/
|
||||||
public static <T extends EscherProperty> T getEscherProperty(AbstractEscherOptRecord opt, int propId){
|
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);
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
@ -117,7 +117,7 @@ public class FieldsImpl implements Fields
|
|||||||
if ( map == null || map.isEmpty() )
|
if ( map == null || map.isEmpty() )
|
||||||
return Collections.emptySet();
|
return Collections.emptySet();
|
||||||
|
|
||||||
return Collections.<Field> unmodifiableCollection( map.values() );
|
return Collections.unmodifiableCollection( map.values() );
|
||||||
}
|
}
|
||||||
|
|
||||||
public FieldImpl getFieldByStartOffset( FieldsDocumentPart documentPart,
|
public FieldImpl getFieldByStartOffset( FieldsDocumentPart documentPart,
|
||||||
|
@ -150,7 +150,7 @@ public final class TestLinkTable extends TestCase {
|
|||||||
|
|
||||||
LinkTable lt;
|
LinkTable lt;
|
||||||
try {
|
try {
|
||||||
lt = new LinkTable(recList, 0, wrl, Collections.<String, NameCommentRecord>emptyMap());
|
lt = new LinkTable(recList, 0, wrl, Collections.emptyMap());
|
||||||
} catch (RuntimeException e) {
|
} catch (RuntimeException e) {
|
||||||
if (e.getMessage().equals("Expected an EXTERNSHEET record but got (org.apache.poi.hssf.record.SSTRecord)")) {
|
if (e.getMessage().equals("Expected an EXTERNSHEET record but got (org.apache.poi.hssf.record.SSTRecord)")) {
|
||||||
throw new AssertionFailedError("Identified bug 47001b");
|
throw new AssertionFailedError("Identified bug 47001b");
|
||||||
|
Loading…
Reference in New Issue
Block a user