Skip to content

Commit

Permalink
cosmetic: eliminate code warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
stefanseifert committed Aug 14, 2023
1 parent 3d95d2d commit 50a7757
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ class MockOverrideSlingPathRequestWrapper extends SlingHttpServletRequestWrapper
super(request);
this.adapterManager = adapterManager;
this.myBindings = new SlingBindings();
this.adaptersCache = new HashMap();
this.adaptersCache = new HashMap<>();
SlingBindings slingBindings = (SlingBindings)this.getSlingRequest().getAttribute(ATTR_SLING_BINDINGS);
this.resource = this.getSlingRequest().getResourceResolver().resolve(this.getSlingRequest(), path);
if (slingBindings != null) {
Expand Down Expand Up @@ -84,6 +84,7 @@ public Resource getResource() {
* Overriding `adaptTo` to avoid using the original request as the adaptable.
*/
@Override
@SuppressWarnings({ "null", "unchecked" })
public <AdapterType> AdapterType adaptTo(Class<AdapterType> type) {
AdapterType result = null;
synchronized (this) {
Expand Down

0 comments on commit 50a7757

Please sign in to comment.