[FOray-commit] SF.net SVN: foray:[10634] trunk/foray
Modular XSL-FO Implementation for Java.
Status: Alpha
Brought to you by:
victormote
|
From: <vic...@us...> - 2009-03-10 21:53:01
|
Revision: 10634
http://foray.svn.sourceforge.net/foray/?rev=10634&view=rev
Author: victormote
Date: 2009-03-10 21:53:00 +0000 (Tue, 10 Mar 2009)
Log Message:
-----------
Clean up some casting that is no longer needed with generics.
Modified Paths:
--------------
trunk/foray/foray-common/src/java/org/foray/common/CharVector.java
trunk/foray/foray-hyphen/src/java/org/foray/hyphen/TernaryTree.java
Modified: trunk/foray/foray-common/src/java/org/foray/common/CharVector.java
===================================================================
--- trunk/foray/foray-common/src/java/org/foray/common/CharVector.java 2009-03-10 21:51:38 UTC (rev 10633)
+++ trunk/foray/foray-common/src/java/org/foray/common/CharVector.java 2009-03-10 21:53:00 UTC (rev 10634)
@@ -96,7 +96,7 @@
/**
* {@inheritDoc}
*/
- public Object clone() {
+ public CharVector clone() {
final CharVector clone = new CharVector();
clone.backingArray = new char[this.nextIndex];
System.arraycopy(this.backingArray, 0, clone.backingArray, 0,
Modified: trunk/foray/foray-hyphen/src/java/org/foray/hyphen/TernaryTree.java
===================================================================
--- trunk/foray/foray-hyphen/src/java/org/foray/hyphen/TernaryTree.java 2009-03-10 21:51:38 UTC (rev 10633)
+++ trunk/foray/foray-hyphen/src/java/org/foray/hyphen/TernaryTree.java 2009-03-10 21:53:00 UTC (rev 10634)
@@ -397,7 +397,7 @@
t.hi = this.hi.clone();
t.eq = this.eq.clone();
t.keyChar = this.keyChar.clone();
- t.compressedKeys = (CharVector) this.compressedKeys.clone();
+ t.compressedKeys = this.compressedKeys.clone();
t.root = this.root;
t.freenode = this.freenode;
t.length = this.length;
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|