Issue #3530: allowed ant to override and swap checker#3750
Conversation
Current coverage is 100% (diff: 100%)@@ master #3750 diff @@
=====================================
Files 275 275
Lines 13608 13609 +1
Methods 0 0
Messages 0 0
Branches 3062 3063 +1
=====================================
+ Hits 13608 13609 +1
Misses 0 0
Partials 0 0
|
|
example that classLoader is for loading other classes, not a vs
So it mean that introduction of new API method only in satisfy deprecated functionality is NOT OK. |
|
@rnveach , see comment above, so it is not ok to change API to support deprecated functionality. classLoader is optional. For now, I recommend to do a workaround in our ANT task to check name of RootModule and if it is Checker do cast and do setClassLoader. So we will support JavadocMethodCheck only in Checker. |
Issue #3530
setClassLoaderis used by eclipse-cs.setClassLoader- has weird javadoc that show some references to multifile validation that removed as problematic (we will come back to multifile mode later).setClassLoaderhad to be moved to root module asantwanted to set it.Originally
antusedcontextualizeto set the class loaders but the root module didn't support that method either. So the choice was to add thecontextualizemethod via also adding the interfaceContextualizableor just add the setter. I figured setter would be better as the interface would require all root modules to implement a complex method likecontextualize.Mainalso used the setter methods instead ofcontextualize.Added a
resetmethod toTestRootModuleCheckerto ensure it is false before any testing since the field is static.