Permalink
Browse files

CheckStyle: Fix 1372 try/catch whitespace violations

- Fix 1362 checkstyle violations where 'catch' is not followed by a whitespace.
- Fix 10 checkstyle violations where 'try' is not followed by a whitespace.
  • Loading branch information...
Pieter12345 committed Jun 7, 2018
1 parent 7d60e35 commit 03bfc16b72f56b4df6f924ed70fb6cdbbf241173
Showing with 1,366 additions and 1,366 deletions.
  1. +1 −1 src/main/java/com/laytonsmith/PureUtilities/ArgumentSuite.java
  2. +2 −2 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/Annotations/CacheAnnotations.java
  3. +17 −17 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassDiscovery.java
  4. +4 −4 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassDiscoveryCache.java
  5. +1 −1 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassDiscoveryURLCache.java
  6. +3 −3 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassMirror/AnnotationMirror.java
  7. +1 −1 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassMirror/ConstructorMirror.java
  8. +1 −1 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassMirror/FieldMirror.java
  9. +1 −1 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/ClassMirror/MethodMirror.java
  10. +3 −3 src/main/java/com/laytonsmith/PureUtilities/ClassLoading/DynamicClassLoader.java
  11. +8 −8 src/main/java/com/laytonsmith/PureUtilities/CommandExecutor.java
  12. +2 −2 src/main/java/com/laytonsmith/PureUtilities/Common/Annotations/AnnotationChecks.java
  13. +5 −5 src/main/java/com/laytonsmith/PureUtilities/Common/Annotations/CheckOverrides.java
  14. +2 −2 src/main/java/com/laytonsmith/PureUtilities/Common/ClassUtils.java
  15. +6 −6 src/main/java/com/laytonsmith/PureUtilities/Common/FileUtil.java
  16. +6 −6 src/main/java/com/laytonsmith/PureUtilities/Common/RSAEncrypt.java
  17. +10 −10 src/main/java/com/laytonsmith/PureUtilities/Common/ReflectionUtils.java
  18. +1 −1 src/main/java/com/laytonsmith/PureUtilities/Common/StackTraceUtils.java
  19. +5 −5 src/main/java/com/laytonsmith/PureUtilities/Common/StreamUtils.java
  20. +1 −1 src/main/java/com/laytonsmith/PureUtilities/Common/WinRegistry.java
  21. +3 −3 src/main/java/com/laytonsmith/PureUtilities/ExecutionQueue.java
  22. +1 −1 src/main/java/com/laytonsmith/PureUtilities/ExhaustiveVisitor.java
  23. +1 −1 src/main/java/com/laytonsmith/PureUtilities/FileLocations.java
  24. +4 −4 src/main/java/com/laytonsmith/PureUtilities/HeapDumper.java
  25. +1 −1 src/main/java/com/laytonsmith/PureUtilities/Marquee.java
  26. +2 −2 src/main/java/com/laytonsmith/PureUtilities/MemoryMapFileUtil.java
  27. +7 −7 src/main/java/com/laytonsmith/PureUtilities/Preferences.java
  28. +1 −1 src/main/java/com/laytonsmith/PureUtilities/PropertiesManager.java
  29. +1 −1 src/main/java/com/laytonsmith/PureUtilities/PublicSuffix.java
  30. +1 −1 src/main/java/com/laytonsmith/PureUtilities/SAXDocument.java
  31. +6 −6 src/main/java/com/laytonsmith/PureUtilities/SSHWrapper.java
  32. +3 −3 src/main/java/com/laytonsmith/PureUtilities/TermColors.java
  33. +3 −3 src/main/java/com/laytonsmith/PureUtilities/ThreadPump.java
  34. +2 −2 src/main/java/com/laytonsmith/PureUtilities/UI/TextDialog.java
  35. +6 −6 src/main/java/com/laytonsmith/PureUtilities/VirtualFS/VirtualFileSystem.java
  36. +1 −1 src/main/java/com/laytonsmith/PureUtilities/Web/Cookie.java
  37. +1 −1 src/main/java/com/laytonsmith/PureUtilities/Web/CookieJar.java
  38. +10 −10 src/main/java/com/laytonsmith/PureUtilities/Web/WebUtility.java
  39. +4 −4 src/main/java/com/laytonsmith/PureUtilities/XMLDocument.java
  40. +4 −4 src/main/java/com/laytonsmith/PureUtilities/ZipReader.java
  41. +5 −5 src/main/java/com/laytonsmith/abstraction/Implementation.java
  42. +1 −1 src/main/java/com/laytonsmith/abstraction/StaticLayer.java
  43. +7 −7 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitConvertor.java
  44. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCBlockStateMeta.java
  45. +4 −4 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCCommand.java
  46. +2 −2 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCInventory.java
  47. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCItemStack.java
  48. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCPlayerInventory.java
  49. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCScoreboard.java
  50. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCServer.java
  51. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCShapedRecipe.java
  52. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCShapelessRecipe.java
  53. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCSkullMeta.java
  54. +4 −4 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCTeam.java
  55. +25 −25 src/main/java/com/laytonsmith/abstraction/bukkit/BukkitMCWorld.java
  56. +2 −2 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCArmorStand.java
  57. +4 −4 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCCreeper.java
  58. +4 −4 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCEnderCrystal.java
  59. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCEnderDragon.java
  60. +11 −11 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCEntity.java
  61. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCGuardian.java
  62. +2 −2 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCHorse.java
  63. +2 −2 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCHumanEntity.java
  64. +6 −6 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCLivingEntity.java
  65. +13 −13 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCPlayer.java
  66. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCSkeleton.java
  67. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/entities/BukkitMCZombie.java
  68. +3 −3 src/main/java/com/laytonsmith/abstraction/bukkit/events/BukkitEntityEvents.java
  69. +1 −1 src/main/java/com/laytonsmith/abstraction/bukkit/events/BukkitPlayerEvents.java
  70. +2 −2 src/main/java/com/laytonsmith/abstraction/bukkit/events/BukkitServerEvents.java
  71. +2 −2 src/main/java/com/laytonsmith/abstraction/bukkit/events/drivers/BukkitPlayerListener.java
  72. +2 −2 src/main/java/com/laytonsmith/abstraction/enums/EnumConvertor.java
  73. +4 −4 src/main/java/com/laytonsmith/abstraction/enums/MCVersion.java
  74. +2 −2 src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCBiomeType.java
  75. +3 −3 src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCEntityType.java
  76. +2 −2 src/main/java/com/laytonsmith/abstraction/enums/bukkit/BukkitMCSound.java
  77. +5 −5 src/main/java/com/laytonsmith/commandhelper/BukkitDirtyRegisteredListener.java
  78. +7 −7 src/main/java/com/laytonsmith/commandhelper/CommandHelperInterpreterListener.java
  79. +3 −3 src/main/java/com/laytonsmith/commandhelper/CommandHelperListener.java
  80. +18 −18 src/main/java/com/laytonsmith/commandhelper/CommandHelperPlugin.java
  81. +4 −4 src/main/java/com/laytonsmith/commandhelper/CommandHelperServerListener.java
  82. +26 −26 src/main/java/com/laytonsmith/core/AliasCore.java
  83. +3 −3 src/main/java/com/laytonsmith/core/ArgumentValidation.java
  84. +3 −3 src/main/java/com/laytonsmith/core/CHLog.java
  85. +2 −2 src/main/java/com/laytonsmith/core/EmailProfile.java
  86. +1 −1 src/main/java/com/laytonsmith/core/GenericTreeNode.java
  87. +7 −7 src/main/java/com/laytonsmith/core/Installer.java
  88. +1 −1 src/main/java/com/laytonsmith/core/MObjectAnnotationProcessor.java
  89. +13 −13 src/main/java/com/laytonsmith/core/Main.java
  90. +30 −30 src/main/java/com/laytonsmith/core/MethodScriptCompiler.java
  91. +1 −1 src/main/java/com/laytonsmith/core/MethodScriptFileLocations.java
  92. +11 −11 src/main/java/com/laytonsmith/core/ObjectGenerator.java
  93. +1 −1 src/main/java/com/laytonsmith/core/ParseTree.java
  94. +6 −6 src/main/java/com/laytonsmith/core/Procedure.java
  95. +7 −7 src/main/java/com/laytonsmith/core/Profiles.java
  96. +16 −16 src/main/java/com/laytonsmith/core/Script.java
  97. +10 −10 src/main/java/com/laytonsmith/core/Static.java
  98. +1 −1 src/main/java/com/laytonsmith/core/compiler/CompilerObject.java
  99. +1 −1 src/main/java/com/laytonsmith/core/compiler/KeywordList.java
  100. +4 −4 src/main/java/com/laytonsmith/core/compiler/LexerObject.java
  101. +1 −1 src/main/java/com/laytonsmith/core/compiler/NewMethodScriptCompiler.java
  102. +2 −2 src/main/java/com/laytonsmith/core/compiler/keywords/ClosureKeyword.java
  103. +1 −1 src/main/java/com/laytonsmith/core/compiler/keywords/DoKeyword.java
  104. +2 −2 src/main/java/com/laytonsmith/core/compiler/keywords/IClosureKeyword.java
  105. +2 −2 src/main/java/com/laytonsmith/core/compiler/keywords/IfKeyword.java
  106. +3 −3 src/main/java/com/laytonsmith/core/compiler/keywords/TryKeyword.java
  107. +15 −15 src/main/java/com/laytonsmith/core/constructs/CArray.java
  108. +2 −2 src/main/java/com/laytonsmith/core/constructs/CBoolean.java
  109. +3 −3 src/main/java/com/laytonsmith/core/constructs/CByteArray.java
  110. +1 −1 src/main/java/com/laytonsmith/core/constructs/CClassType.java
  111. +9 −9 src/main/java/com/laytonsmith/core/constructs/CClosure.java
  112. +1 −1 src/main/java/com/laytonsmith/core/constructs/CDecimal.java
  113. +1 −1 src/main/java/com/laytonsmith/core/constructs/CDouble.java
  114. +7 −7 src/main/java/com/laytonsmith/core/constructs/CIClosure.java
  115. +1 −1 src/main/java/com/laytonsmith/core/constructs/CInt.java
  116. +3 −3 src/main/java/com/laytonsmith/core/constructs/CSecureString.java
  117. +3 −3 src/main/java/com/laytonsmith/core/constructs/CSlice.java
  118. +3 −3 src/main/java/com/laytonsmith/core/constructs/CString.java
  119. +1 −1 src/main/java/com/laytonsmith/core/constructs/Construct.java
  120. +1 −1 src/main/java/com/laytonsmith/core/constructs/NativeTypeList.java
  121. +1 −1 src/main/java/com/laytonsmith/core/environments/Environment.java
  122. +4 −4 src/main/java/com/laytonsmith/core/events/AbstractEvent.java
  123. +8 −8 src/main/java/com/laytonsmith/core/events/BoundEvent.java
  124. +1 −1 src/main/java/com/laytonsmith/core/events/EventBuilder.java
  125. +10 −10 src/main/java/com/laytonsmith/core/events/EventUtils.java
  126. +3 −3 src/main/java/com/laytonsmith/core/events/Prefilters.java
  127. +6 −6 src/main/java/com/laytonsmith/core/events/drivers/BlockEvents.java
  128. +1 −1 src/main/java/com/laytonsmith/core/events/drivers/CmdlineEvents.java
  129. +1 −1 src/main/java/com/laytonsmith/core/events/drivers/EntityEvents.java
  130. +4 −4 src/main/java/com/laytonsmith/core/events/drivers/PlayerEvents.java
  131. +1 −1 src/main/java/com/laytonsmith/core/events/drivers/ServerEvents.java
  132. +2 −2 src/main/java/com/laytonsmith/core/exceptions/ConfigRuntimeException.java
  133. +1 −1 src/main/java/com/laytonsmith/core/extensions/ExtensionAnnotationProcessor.java
  134. +23 −23 src/main/java/com/laytonsmith/core/extensions/ExtensionManager.java
  135. +2 −2 src/main/java/com/laytonsmith/core/extensions/ExtensionTracker.java
  136. +2 −2 src/main/java/com/laytonsmith/core/federation/Federation.java
  137. +3 −3 src/main/java/com/laytonsmith/core/federation/FederationCommunication.java
  138. +2 −2 src/main/java/com/laytonsmith/core/federation/FederationConnection.java
  139. +5 −5 src/main/java/com/laytonsmith/core/federation/FederationMasterSocket.java
  140. +7 −7 src/main/java/com/laytonsmith/core/federation/FederationServer.java
  141. +1 −1 src/main/java/com/laytonsmith/core/functions/AbstractFunction.java
  142. +20 −20 src/main/java/com/laytonsmith/core/functions/ArrayHandling.java
  143. +3 −3 src/main/java/com/laytonsmith/core/functions/BasicLogic.java
  144. +7 −7 src/main/java/com/laytonsmith/core/functions/BossBar.java
  145. +13 −13 src/main/java/com/laytonsmith/core/functions/ByteArrays.java
  146. +3 −3 src/main/java/com/laytonsmith/core/functions/Clipboard.java
  147. +21 −21 src/main/java/com/laytonsmith/core/functions/Cmdline.java
  148. +3 −3 src/main/java/com/laytonsmith/core/functions/Compiler.java
  149. +2 −2 src/main/java/com/laytonsmith/core/functions/CompositeFunction.java
  150. +6 −6 src/main/java/com/laytonsmith/core/functions/Crypto.java
  151. +26 −26 src/main/java/com/laytonsmith/core/functions/DataHandling.java
  152. +8 −8 src/main/java/com/laytonsmith/core/functions/DataTransformations.java
  153. +2 −2 src/main/java/com/laytonsmith/core/functions/Debug.java
  154. +5 −5 src/main/java/com/laytonsmith/core/functions/Echoes.java
  155. +4 −4 src/main/java/com/laytonsmith/core/functions/Enchantments.java
  156. +50 −50 src/main/java/com/laytonsmith/core/functions/EntityManagement.java
  157. +11 −11 src/main/java/com/laytonsmith/core/functions/Environment.java
  158. +4 −4 src/main/java/com/laytonsmith/core/functions/EventBinding.java
  159. +5 −5 src/main/java/com/laytonsmith/core/functions/ExampleScript.java
  160. +8 −8 src/main/java/com/laytonsmith/core/functions/Exceptions.java
  161. +8 −8 src/main/java/com/laytonsmith/core/functions/ExecutionQueue.java
  162. +1 −1 src/main/java/com/laytonsmith/core/functions/ExtensionMeta.java
  163. +7 −7 src/main/java/com/laytonsmith/core/functions/FileHandling.java
  164. +3 −3 src/main/java/com/laytonsmith/core/functions/IncludeCache.java
  165. +11 −11 src/main/java/com/laytonsmith/core/functions/InventoryManagement.java
  166. +1 −1 src/main/java/com/laytonsmith/core/functions/Marquee.java
  167. +6 −6 src/main/java/com/laytonsmith/core/functions/Math.java
  168. +4 −4 src/main/java/com/laytonsmith/core/functions/Meta.java
  169. +8 −8 src/main/java/com/laytonsmith/core/functions/Minecraft.java
  170. +3 −3 src/main/java/com/laytonsmith/core/functions/MobManagement.java
  171. +12 −12 src/main/java/com/laytonsmith/core/functions/OAuth.java
  172. +1 −1 src/main/java/com/laytonsmith/core/functions/Performance.java
  173. +14 −14 src/main/java/com/laytonsmith/core/functions/Persistence.java
  174. +16 −16 src/main/java/com/laytonsmith/core/functions/PlayerManagement.java
  175. +1 −1 src/main/java/com/laytonsmith/core/functions/Recipes.java
  176. +4 −4 src/main/java/com/laytonsmith/core/functions/Reflection.java
  177. +5 −5 src/main/java/com/laytonsmith/core/functions/Regex.java
  178. +2 −2 src/main/java/com/laytonsmith/core/functions/ResourceManager.java
  179. +6 −6 src/main/java/com/laytonsmith/core/functions/SQL.java
  180. +4 −4 src/main/java/com/laytonsmith/core/functions/Sandbox.java
  181. +15 −15 src/main/java/com/laytonsmith/core/functions/Scheduling.java
  182. +15 −15 src/main/java/com/laytonsmith/core/functions/Scoreboards.java
  183. +8 −8 src/main/java/com/laytonsmith/core/functions/StringHandling.java
  184. +10 −10 src/main/java/com/laytonsmith/core/functions/Threading.java
  185. +15 −15 src/main/java/com/laytonsmith/core/functions/Web.java
  186. +12 −12 src/main/java/com/laytonsmith/core/functions/World.java
  187. +4 −4 src/main/java/com/laytonsmith/core/functions/XGUI.java
  188. +3 −3 src/main/java/com/laytonsmith/core/natives/interfaces/MObject.java
  189. +7 −7 src/main/java/com/laytonsmith/core/packetjumper/PacketJumper.java
  190. +1 −1 src/main/java/com/laytonsmith/core/profiler/Profiler.java
  191. +3 −3 src/main/java/com/laytonsmith/database/MySQLProfile.java
  192. +3 −3 src/main/java/com/laytonsmith/database/PostgreSQLProfile.java
  193. +1 −1 src/main/java/com/laytonsmith/database/SQLiteProfile.java
  194. +1 −1 src/main/java/com/laytonsmith/persistence/AbstractDataSource.java
  195. +4 −4 src/main/java/com/laytonsmith/persistence/DataSourceFactory.java
  196. +5 −5 src/main/java/com/laytonsmith/persistence/DataSourceFilter.java
  197. +1 −1 src/main/java/com/laytonsmith/persistence/INIDataSource.java
  198. +2 −2 src/main/java/com/laytonsmith/persistence/JSONDataSource.java
  199. +1 −1 src/main/java/com/laytonsmith/persistence/MemoryDataSource.java
  200. +8 −8 src/main/java/com/laytonsmith/persistence/MySQLDataSource.java
  201. +6 −6 src/main/java/com/laytonsmith/persistence/RedisDataSource.java
  202. +6 −6 src/main/java/com/laytonsmith/persistence/SQLDataSource.java
  203. +20 −20 src/main/java/com/laytonsmith/persistence/SQLiteDataSource.java
  204. +11 −11 src/main/java/com/laytonsmith/persistence/SerializedPersistence.java
  205. +2 −2 src/main/java/com/laytonsmith/persistence/StringSerializableDataSource.java
  206. +1 −1 src/main/java/com/laytonsmith/persistence/YMLDataSource.java
  207. +2 −2 src/main/java/com/laytonsmith/persistence/io/ConnectionMixinFactory.java
  208. +3 −3 src/main/java/com/laytonsmith/persistence/io/ReadWriteFileConnection.java
  209. +1 −1 src/main/java/com/laytonsmith/persistence/io/WebConnection.java
  210. +1 −1 src/main/java/com/laytonsmith/tools/ExampleLocalPackageInstaller.java
  211. +27 −27 src/main/java/com/laytonsmith/tools/Interpreter.java
  212. +5 −5 src/main/java/com/laytonsmith/tools/MSLPMaker.java
  213. +21 −21 src/main/java/com/laytonsmith/tools/Manager.java
  214. +3 −3 src/main/java/com/laytonsmith/tools/SyntaxHighlighters.java
  215. +1 −1 src/main/java/com/laytonsmith/tools/UILauncher.java
  216. +6 −6 src/main/java/com/laytonsmith/tools/docgen/DocGen.java
  217. +2 −2 src/main/java/com/laytonsmith/tools/docgen/DocGenExportTool.java
  218. +15 −15 src/main/java/com/laytonsmith/tools/docgen/DocGenTemplates.java
  219. +9 −9 src/main/java/com/laytonsmith/tools/docgen/DocGenUI.java
  220. +5 −5 src/main/java/com/laytonsmith/tools/docgen/DocGenUIHandler.java
  221. +2 −2 src/main/java/com/laytonsmith/tools/docgen/ExtensionDocGen.java
  222. +2 −2 src/main/java/com/laytonsmith/tools/docgen/SingleFunctionDialog.java
  223. +4 −4 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/APIBuilder.java
  224. +2 −2 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/LocalDeploymentMethod.java
  225. +23 −23 src/main/java/com/laytonsmith/tools/docgen/sitedeploy/SiteDeploy.java
  226. +3 −3 src/main/java/com/laytonsmith/tools/pnviewer/ConfigurationLoaderDialog.java
  227. +1 −1 src/main/java/com/laytonsmith/tools/pnviewer/ManageBookmarksDialog.java
  228. +24 −24 src/main/java/com/laytonsmith/tools/pnviewer/PNViewer.java
  229. +1 −1 src/test/java/com/laytonsmith/PureUtilities/XMLDocumentTest.java
  230. +1 −1 src/test/java/com/laytonsmith/PureUtilities/ZipReaderTest.java
  231. +22 −22 src/test/java/com/laytonsmith/core/MethodScriptCompilerTest.java
  232. +26 −26 src/test/java/com/laytonsmith/core/NewExceptionHandlingTest.java
  233. +1 −1 src/test/java/com/laytonsmith/core/PrefsTest.java
  234. +1 −1 src/test/java/com/laytonsmith/core/TestStatic.java
  235. +1 −1 src/test/java/com/laytonsmith/core/constructs/ClassInfoTest.java
  236. +16 −16 src/test/java/com/laytonsmith/core/events/PrefiltersTest.java
  237. +2 −2 src/test/java/com/laytonsmith/core/functions/ArrayHandlingTest.java
  238. +2 −2 src/test/java/com/laytonsmith/core/functions/BasicLogicTest.java
  239. +4 −4 src/test/java/com/laytonsmith/core/functions/MathTest.java
  240. +3 −3 src/test/java/com/laytonsmith/core/functions/RegexTest.java
  241. +18 −18 src/test/java/com/laytonsmith/core/functions/StringHandlingTest.java
  242. +5 −5 src/test/java/com/laytonsmith/persistence/TestPersistence.java
  243. +8 −8 src/test/java/com/laytonsmith/testing/RandomTests.java
  244. +12 −12 src/test/java/com/laytonsmith/testing/StaticTest.java
@@ -292,7 +292,7 @@ public static void main(String[] args) {
}
System.exit(0);
}
} catch(ResultUseException | ValidationException ex) {
} catch (ResultUseException | ValidationException ex) {
showHelp(suite);
}
}
@@ -87,15 +87,15 @@ public static void main(String[] args) throws Exception {
for(Method m : SimpleDocumentation.class.getDeclaredMethods()) {
try {
c.getDeclaredMethod(m.getName(), m.getParameterTypes());
} catch(NoSuchMethodException ex) {
} catch (NoSuchMethodException ex) {
// typeof is exempt from having getName in each individual class, because the
// typeof value is that information.
if(!m.getName().equals("getName")) {
if(c.getAnnotation(typeof.class) != null && !isGetNameExempt) {
uhohs.add(c.getName() + " must implement " + m.getName() + "().");
}
}
} catch(SecurityException ex) {
} catch (SecurityException ex) {
throw new Error(ex);
}
}
@@ -242,7 +242,7 @@ private synchronized void discover(URL rootLocation) {
String url;
try {
url = URLDecoder.decode(rootLocation.toString(), "UTF-8");
} catch(UnsupportedEncodingException ex) {
} catch (UnsupportedEncodingException ex) {
// apparently this should never happen, but we have to catch it anyway
url = null;
}
@@ -300,13 +300,13 @@ private synchronized void discover(URL rootLocation) {
ClassMirrorVisitor mirrorVisitor = new ClassMirrorVisitor();
reader.accept(mirrorVisitor, ClassReader.SKIP_CODE | ClassReader.SKIP_FRAMES | ClassReader.SKIP_DEBUG);
mirrors.add(mirrorVisitor.getMirror(new URL(url)));
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(ClassDiscovery.class.getName()).log(Level.SEVERE, null, ex);
} finally {
if(stream != null) {
try {
stream.close();
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(ClassDiscovery.class.getName()).log(Level.SEVERE, null, ex);
}
}
@@ -335,20 +335,20 @@ public void handle(String filename, InputStream in) {
ClassMirrorVisitor mirrorVisitor = new ClassMirrorVisitor();
reader.accept(mirrorVisitor, ClassReader.SKIP_CODE | ClassReader.SKIP_FRAMES | ClassReader.SKIP_DEBUG);
mirrors.add(mirrorVisitor.getMirror(rootLocationFile.toURI().toURL()));
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(ClassDiscovery.class.getName()).log(Level.SEVERE, null, ex);
}
}
}
}, progressIterator);
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(ClassDiscovery.class.getName()).log(Level.SEVERE, null, ex);
}
} else {
throw new RuntimeException("Unknown url type: " + rootLocation);
}
} catch(RuntimeException e) {
} catch (RuntimeException e) {
e.printStackTrace(System.err);
} finally {
if(debug) {
@@ -413,7 +413,7 @@ public void addAllJarsInFolder(File folder) {
if(f.getName().endsWith(".jar")) {
try {
addDiscoveryLocation(f.toURI().toURL());
} catch(MalformedURLException ex) {
} catch (MalformedURLException ex) {
//
}
}
@@ -568,7 +568,7 @@ public boolean doesClassExtend(ClassMirror<?> subClass, Class<?> superClass) {
//We need to add change the reference to su
su = new ClassReferenceMirror<>("L" + clazz.getSuperclass().getName().replace('.', '/') + ";");
}
} catch(ClassNotFoundException ex) {
} catch (ClassNotFoundException ex) {
//Hmm, ok? I guess something bad happened, so let's break
//the loop and give up on this class.
return false;
@@ -597,7 +597,7 @@ public boolean doesClassExtend(ClassMirror<?> subClass, Class<?> superClass) {
for(Class<?> c : clazz.getInterfaces()) {
interfaces.add(new ClassReferenceMirror<>("L" + c.getName().replace('.', '/') + ";"));
}
} catch(ClassNotFoundException ex) {
} catch (ClassNotFoundException ex) {
return false;
}
} else {
@@ -625,7 +625,7 @@ public boolean doesClassExtend(ClassMirror<?> subClass, Class<?> superClass) {
if(superClass.isAssignableFrom(clazz)) {
return true;
}
} catch(ClassNotFoundException ex) {
} catch (ClassNotFoundException ex) {
return false;
}
}
@@ -758,7 +758,7 @@ public boolean doesClassExtend(ClassMirror<?> subClass, Class<?> superClass) {
for(ClassMirror<? extends T> cm : getClassesWithAnnotationThatExtend(annotation, superClass)) {
try {
set.add(cm.loadClass(loader, initialize));
} catch(NoClassDefFoundError e) {
} catch (NoClassDefFoundError e) {
//Ignore this for now?
//throw new Error("While trying to process " + cm.toString() + ", an error occurred.", e);
}
@@ -793,7 +793,7 @@ public boolean doesClassExtend(ClassMirror<?> subClass, Class<?> superClass) {
for(ClassMirror<?> cm : getClassesWithAnnotation(annotation)) {
try {
set.add(cm.loadClass(loader, initialize));
} catch(NoClassDefFoundError e) {
} catch (NoClassDefFoundError e) {
//Ignore this for now?
//throw new Error("While trying to process " + cm.toString() + ", an error occurred.", e);
}
@@ -877,7 +877,7 @@ public boolean doesClassExtend(ClassMirror<?> subClass, Class<?> superClass) {
set.add(mm.loadMethod(loader, initialize));
}
return set;
} catch(ClassNotFoundException ex) {
} catch (ClassNotFoundException ex) {
throw new NoClassDefFoundError();
}
}
@@ -943,7 +943,7 @@ public boolean doesClassExtend(ClassMirror<?> subClass, Class<?> superClass) {
}
set.add(cc);
}
} catch(ClassNotFoundException ex) {
} catch (ClassNotFoundException ex) {
throw new NoClassDefFoundError();
}
}
@@ -1068,7 +1068,7 @@ public static URL GetClassContainer(Class<?> c) {
try {
try {
packageRoot = StringUtils.replaceLast(thisClass, Pattern.quote(c.getName().replaceAll("\\.", "/") + ".class"), "");
} catch(Exception e) {
} catch (Exception e) {
//Hmm, ok, try this then
packageRoot = c.getProtectionDomain().getCodeSource().getLocation().toString();
}
@@ -1078,9 +1078,9 @@ public static URL GetClassContainer(Class<?> c) {
packageRoot = packageRoot.replaceFirst("jar:", "");
}
return new URL(packageRoot);
} catch(UnsupportedEncodingException e) {
} catch (UnsupportedEncodingException e) {
throw new RuntimeException("While interrogating " + c.getName() + ", an unexpected exception was thrown.", e);
} catch(MalformedURLException e) {
} catch (MalformedURLException e) {
throw new RuntimeException("While interrogating " + c.getName() + ", an unexpected exception was thrown for potential URL: \"" + packageRoot + "\"", e);
}
}
@@ -102,7 +102,7 @@ public ClassDiscoveryURLCache getURLCache(URL fromClassLocation) {
}
//Doesn't exist, but we set cacheOutputName, so it will save it there
//after it scans.
} catch(Exception ex) {
} catch (Exception ex) {
//Hmm. Ok, well, we'll just regenerate.
}
@@ -118,12 +118,12 @@ public ClassDiscoveryURLCache getURLCache(URL fromClassLocation) {
try {
return new ClassDiscoveryURLCache(fromClassLocation, is);
} catch(Exception ex) {
} catch (Exception ex) {
//Do nothing, we'll just re-load from disk.
}
}
}
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(ClassDiscoveryCache.class.getName()).log(Level.SEVERE, null, ex);
}
@@ -139,7 +139,7 @@ public ClassDiscoveryURLCache getURLCache(URL fromClassLocation) {
zos.putNextEntry(new ZipEntry("data"));
cache.writeDescriptor(zos);
}
} catch(IOException ex) {
} catch (IOException ex) {
//Well, we couldn't write it out, so report the error, but continue anyways.
if(logger != null) {
logger.log(Level.SEVERE, null, ex);
@@ -67,7 +67,7 @@ public ClassDiscoveryURLCache(URL url, InputStream descriptor) throws IOExceptio
ObjectInputStream ois = new ObjectInputStream(descriptor);
try {
_list = (List<ClassMirror<?>>) ois.readObject();
} catch(ClassNotFoundException ex) {
} catch (ClassNotFoundException ex) {
if(url != null) {
//We can recover from this one, but it won't be instant.
_list = new ClassDiscoveryURLCache(url).list;
@@ -36,7 +36,7 @@ public AnnotationMirror(Annotation annotation) {
for(Method m : annotation.annotationType().getDeclaredMethods()) {
try {
values.add(new AnnotationValue(m.getName(), m.invoke(annotation)));
} catch(IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
} catch (IllegalAccessException | IllegalArgumentException | InvocationTargetException ex) {
throw new RuntimeException(ex);
}
}
@@ -108,9 +108,9 @@ public Object getValueWithDefault(String forName) throws ClassNotFoundException
try {
Method m = c.getMethod(forName);
return m.getDefaultValue();
} catch(NoSuchMethodException ex) {
} catch (NoSuchMethodException ex) {
return null;
} catch(SecurityException ex) {
} catch (SecurityException ex) {
throw new RuntimeException(ex);
}
}
@@ -70,7 +70,7 @@ public ConstructorMirror(MethodMirror copy) {
}
try {
return parent.getConstructor(cParams.toArray(new Class[cParams.size()]));
} catch(NoSuchMethodException | SecurityException ex) {
} catch (NoSuchMethodException | SecurityException ex) {
//There's really no way for any exception to happen here, so just rethrow
throw new RuntimeException(ex);
}
@@ -23,7 +23,7 @@ public FieldMirror(Field field) {
Object _value = null;
try {
_value = field.get(null);
} catch(IllegalArgumentException | IllegalAccessException ex) {
} catch (IllegalArgumentException | IllegalAccessException ex) {
//
}
this.value = _value;
@@ -65,7 +65,7 @@ public Method loadMethod(ClassLoader loader, boolean initialize) throws ClassNot
}
try {
return parent.getMethod(name, cParams.toArray(new Class[cParams.size()]));
} catch(NoSuchMethodException | SecurityException ex) {
} catch (NoSuchMethodException | SecurityException ex) {
//There's really no way for any exception to happen here, so just rethrow
throw new RuntimeException(ex);
}
@@ -55,7 +55,7 @@ public synchronized void removeJar(URL url) {
try {
l.close();
} catch(IOException ex) {
} catch (IOException ex) {
// Whatever.
}
}
@@ -87,7 +87,7 @@ protected synchronized Package getPackage(String name) {
//If the parent class knows about it, we're done.
Class c = Class.forName(name, resolve, DynamicClassLoader.class.getClassLoader());
return c;
} catch(ClassNotFoundException ex) {
} catch (ClassNotFoundException ex) {
//Otherwise we need to find the class ourselves.
for(URLClassLoader url : classLoaders.values()) {
try {
@@ -96,7 +96,7 @@ protected synchronized Package getPackage(String name) {
resolveClass(c);
}
return c;
} catch(ClassNotFoundException ex1) {
} catch (ClassNotFoundException ex1) {
//Don't care, move on to the next class loader
}
}
@@ -111,13 +111,13 @@ public void run() {
if(out != null) {
out.flush();
}
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(CommandExecutor.class.getName()).log(Level.SEVERE, null, ex);
} finally {
if(out != null) {
try {
out.close();
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(CommandExecutor.class.getName()).log(Level.SEVERE, null, ex);
}
}
@@ -140,13 +140,13 @@ public void run() {
if(err != null) {
err.flush();
}
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(CommandExecutor.class.getName()).log(Level.SEVERE, null, ex);
} finally {
if(err != null) {
try {
err.close();
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(CommandExecutor.class.getName()).log(Level.SEVERE, null, ex);
}
}
@@ -165,13 +165,13 @@ public void run() {
while((ret = in.read()) != -1) {
bin.write(ret);
}
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(CommandExecutor.class.getName()).log(Level.SEVERE, null, ex);
} finally {
if(in != null) {
try {
in.close();
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(CommandExecutor.class.getName()).log(Level.SEVERE, null, ex);
}
}
@@ -239,14 +239,14 @@ public int waitFor() throws InterruptedException {
if(out != null) {
try {
out.flush();
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(CommandExecutor.class.getName()).log(Level.SEVERE, null, ex);
}
}
if(err != null) {
try {
err.flush();
} catch(IOException ex) {
} catch (IOException ex) {
Logger.getLogger(CommandExecutor.class.getName()).log(Level.SEVERE, null, ex);
}
}
@@ -40,7 +40,7 @@ public static void checkForTypeInTypeofClasses() throws Exception {
if(!TYPE.val().equals(clazz.getAnnotation(typeof.class).getValue("value"))) {
errors.add(clazz.getClassName() + "'s TYPE value is different than the typeof annotation on it");
}
} catch(ReflectionUtils.ReflectionException ex) {
} catch (ReflectionUtils.ReflectionException ex) {
errors.add(clazz.getClassName() + " needs to add the following:\n\t@SuppressWarnings(\"FieldNameHidesFieldInSuperclass\")\n"
+ "\tpublic static final CClassType TYPE = CClassType.get(\"" + clazz.getAnnotation(typeof.class).getValue("value") + "\");");
}
@@ -156,7 +156,7 @@ public static void verifyNonInheritImplements() throws ClassNotFoundException {
for(Method im : iface.getDeclaredMethods()) {
try {
c.getMethod(im.getName(), im.getParameterTypes());
} catch(NoSuchMethodException ex) {
} catch (NoSuchMethodException ex) {
String msg = "The class " + c.getClassName() + " implements " + iface.getSimpleName() + " but does not"
+ " implement the method public " + im.getReturnType().getSimpleName() + " " + im.getName() + "(";
List<String> params = new ArrayList<>();
Oops, something went wrong.

0 comments on commit 03bfc16

Please sign in to comment.