Use new APIs where appropriate
Remove import declarations with deprecated types (fully qualify where used)
Fix FsNe.evaluate not overriding the intended method
Fix DefaultDynamicContext.evaluate_function
Remove unnecessary SuppressWarnings annotation
DOMLoaderException is still used, removed Deprecated annotation
Evaluator.evaluate can throw DynamicError
Implement math operators using an adapter interface instead of reflection
Fix build warnings in XPathCup.java
Address all remaining deprecation warnings
Mark fields final where immediately possible
Remove unnecessary manual boxing/unboxing operations
Use StringBuilder instead of StringBuffer
Use enhanced for loop where applicable
Specify argument for generic type
Handle potential ClassCastException
Organize imports
Add missing Override annotations
Always throw the result of DynamicError.throw_type_error to make code flow clear
Documentation issues