Class URLProcessor_bad
java.lang.Object
|
+----URLProcessor
|
+----URLProcessor_bad
- class URLProcessor_bad
- extends URLProcessor
-
URLProcessor_bad()
-
-
decideUrl()
- ugly nested-if code
-
isMemberWestAlliance(String)
- this method is replaced by code in MemberCondition
in URLProcessor_good
-
main(String[])
- This main method lets you run the code as an application
without using a GUI.
URLProcessor_bad
URLProcessor_bad()
decideUrl
void decideUrl()
- ugly nested-if code
- Overrides:
- decideUrl in class URLProcessor
isMemberWestAlliance
boolean isMemberWestAlliance(String id)
- this method is replaced by code in MemberCondition
in URLProcessor_good
main
public static void main(String args[])
- This main method lets you run the code as an application
without using a GUI. Standard output is used to display
results.