Revision: 8557
http://svn.sourceforge.net/foray/?rev=8557&view=rev
Author: victormote
Date: 2007-01-31 07:08:14 -0800 (Wed, 31 Jan 2007)
Log Message:
-----------
Use new inheritance feature of the enum to eliminate a multiway switch.
Modified Paths:
--------------
trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java
Modified: trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java
===================================================================
--- trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java 2007-01-31 03:47:26 UTC (rev 8556)
+++ trunk/foray/foray-fotree/src/java/org/foray/fotree/fo/obj/BasicLink.java 2007-01-31 15:08:14 UTC (rev 8557)
@@ -81,14 +81,7 @@
}
public boolean isValid() {
- final LinkType linkType = getLinkType();
- if (linkType == LinkType.INTERNAL) {
- return true;
- }
- if (linkType == LinkType.EXTERNAL) {
- return true;
- }
- return false;
+ return getLinkType().isValid();
}
public String getName() {
This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site.
|