aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java2
-rw-r--r--src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java2
-rw-r--r--src/testcases/org/apache/poi/hssf/model/TestLinkTable.java2
3 files changed, 3 insertions, 3 deletions
diff --git a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java
index 1fb0196186..460b46875e 100644
--- a/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java
+++ b/src/scratchpad/src/org/apache/poi/hslf/usermodel/HSLFShape.java
@@ -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);
}
/**
diff --git a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java
index 7f73e59186..0e2dcdbeb1 100644
--- a/src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java
+++ b/src/scratchpad/src/org/apache/poi/hwpf/usermodel/FieldsImpl.java
@@ -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,
diff --git a/src/testcases/org/apache/poi/hssf/model/TestLinkTable.java b/src/testcases/org/apache/poi/hssf/model/TestLinkTable.java
index 9d33980071..d34de10923 100644
--- a/src/testcases/org/apache/poi/hssf/model/TestLinkTable.java
+++ b/src/testcases/org/apache/poi/hssf/model/TestLinkTable.java
@@ -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");