Within UCSBSearchCurriculum.java we removed all the old substring methods that were left over from our previous refactor. Then, following the suggestion of the software engineer from TheTradeDesk that we worked with, we refactored parseSection and parseLecture to just use JSOUP to parse the individual course row tags.
This allows us to limit our use of substring to very small, specific strings, making the parsing more reliable and safer.
Within
UCSBSearchCurriculum.java
we removed all the old substring methods that were left over from our previous refactor. Then, following the suggestion of the software engineer from TheTradeDesk that we worked with, we refactoredparseSection
andparseLecture
to just use JSOUP to parse the individual course row tags.This allows us to limit our use of
substring
to very small, specific strings, making the parsing more reliable and safer.