Title: Remove redundant boxing and casting by Minimaximize · Pull Request #5982 · processing/processing · GitHub
Open Graph Title: Remove redundant boxing and casting by Minimaximize · Pull Request #5982 · processing/processing
X Title: Remove redundant boxing and casting by Minimaximize · Pull Request #5982 · processing/processing
Description: Removed array instantiation where parameters could be accepted as VArgs
callbackClass.getMethod(callbackMethod, new Class[] { File.class }); =>
callbackClass.getMethod(callbackMethod, File.class);
Remove redundant unboxing where appropriate
(scale instanceof Integer && ((Integer)scale).intValue() == 2) =>
(scale instanceof Integer && (Integer) scale == 2)
In this case scale will automaticaly be unboxed to it's int value
Replace protected void handleMethods(String methodName) and
protected void handleMethods(String methodName, Object[] args)
with
protected void handleMethods(String methodName, Object...args)
as it handles both cases
Remove redundant extends Object clause from type wildcards
List
Open Graph Description: Removed array instantiation where parameters could be accepted as VArgs callbackClass.getMethod(callbackMethod, new Class[] { File.class }); => callbackClass.getMethod(callbackMethod, File.class...
X Description: Removed array instantiation where parameters could be accepted as VArgs callbackClass.getMethod(callbackMethod, new Class[] { File.class }); => callbackClass.getMethod(callbackMethod, File.c...
Opengraph URL: https://github.com/processing/processing/pull/5982
X: @github
Domain: patch-diff.githubusercontent.com
| route-pattern | /:user_id/:repository/pull/:id/files(.:format) |
| route-controller | pull_requests |
| route-action | files |
| fetch-nonce | v2:17c9d5f9-bee0-109f-9801-20b60ba557a6 |
| current-catalog-service-hash | ae870bc5e265a340912cde392f23dad3671a0a881730ffdadd82f2f57d81641b |
| request-id | 97BE:31BD28:42A3E66:5CE0FD2:69713CA7 |
| html-safe-nonce | ed8369adf09d905a7404135c565467f288aeedc1303b71558cba87d0d1925678 |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5N0JFOjMxQkQyODo0MkEzRTY2OjVDRTBGRDI6Njk3MTNDQTciLCJ2aXNpdG9yX2lkIjoiODA0MzgwMTM1NzE2MTkzODA4NyIsInJlZ2lvbl9lZGdlIjoiaWFkIiwicmVnaW9uX3JlbmRlciI6ImlhZCJ9 |
| visitor-hmac | 99e0b223e97402d11c60ca561c94fc121d06f78aab934b2b688f020ee657a3e4 |
| hovercard-subject-tag | pull_request:364482665 |
| github-keyboard-shortcuts | repository,pull-request-list,pull-request-conversation,pull-request-files-changed,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/processing/processing/pull/5982/files |
| twitter:image | https://avatars.githubusercontent.com/u/12061276?s=400&v=4 |
| twitter:card | summary_large_image |
| og:image | https://avatars.githubusercontent.com/u/12061276?s=400&v=4 |
| og:image:alt | Removed array instantiation where parameters could be accepted as VArgs callbackClass.getMethod(callbackMethod, new Class[] { File.class }); => callbackClass.getMethod(callbackMethod, File.class... |
| og:site_name | GitHub |
| og:type | object |
| hostname | github.com |
| expected-hostname | github.com |
| None | 7899979feb505886f0f29e8086a739254f3a850fd3dbc9fb63ce4ec27831b1fb |
| turbo-cache-control | no-preview |
| diff-view | unified |
| go-import | github.com/processing/processing git https://github.com/processing/processing.git |
| octolytics-dimension-user_id | 1617169 |
| octolytics-dimension-user_login | processing |
| octolytics-dimension-repository_id | 7807399 |
| octolytics-dimension-repository_nwo | processing/processing |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 7807399 |
| octolytics-dimension-repository_network_root_nwo | processing/processing |
| turbo-body-classes | logged-out env-production page-responsive full-width |
| disable-turbo | true |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 998d3ef09faa982f8d83ad111166244ae4625572 |
| ui-target | canary-2 |
| theme-color | #1e2327 |
| color-scheme | light dark |
Links:
Viewport: width=device-width