ctakes-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From tm...@apache.org
Subject svn commit: r1589454 - /ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java
Date Wed, 23 Apr 2014 16:24:54 GMT
Author: tmill
Date: Wed Apr 23 16:24:53 2014
New Revision: 1589454

URL: http://svn.apache.org/r1589454
Log:
CTAKES-197: Used java 7 style generics w/o unnecessary type specifications to remove warnings.

Modified:
    ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java

Modified: ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java
URL: http://svn.apache.org/viewvc/ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java?rev=1589454&r1=1589453&r2=1589454&view=diff
==============================================================================
--- ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java
(original)
+++ ctakes/trunk/ctakes-chunker/src/main/java/org/apache/ctakes/chunker/ae/adjuster/ChunkAdjuster.java
Wed Apr 23 16:24:53 2014
@@ -150,7 +150,7 @@ public class ChunkAdjuster extends JCasA
 	}
 
 	protected void annotateSentence(JCas jcas, Sentence sent) throws AnalysisEngineProcessException{
-    List<Chunk> chunkList = new ArrayList<Chunk>(JCasUtil.selectCovered(jcas,
Chunk.class, sent));
+    List<Chunk> chunkList = new ArrayList<>(JCasUtil.selectCovered(jcas, Chunk.class,
sent));
 
     // For each chunk in the Sentence, see if the chunk is the start of a
     // matching pattern
@@ -186,7 +186,7 @@ public class ChunkAdjuster extends JCasA
 		// Find the Chunks in this Sentence
 		// For each Chunk, there is a corresponding more specific such as NP,
 		// PP, etc
-		List<Chunk> chunkList = new ArrayList<Chunk>(JCasUtil.selectCovered(jcas, Chunk.class,
rangeBegin, rangeEnd));
+		List<Chunk> chunkList = new ArrayList<>(JCasUtil.selectCovered(jcas, Chunk.class,
rangeBegin, rangeEnd));
 
 		// For each chunk in the Sentence, see if the chunk is the start of a
 		// matching pattern



Mime
View raw message