From 74c589ccdf1c9cc670e0cea2b7e8338ae612f575 Mon Sep 17 00:00:00 2001 From: Roman Korostinskiy <70313618+c71n93@users.noreply.github.com> Date: Mon, 11 Mar 2024 18:29:14 +0300 Subject: [PATCH] #2863 fix qulice warnings --- .../src/main/java/org/eolang/PhDecorator.java | 41 +++++++++++++++++-- 1 file changed, 37 insertions(+), 4 deletions(-) diff --git a/eo-runtime/src/main/java/org/eolang/PhDecorator.java b/eo-runtime/src/main/java/org/eolang/PhDecorator.java index 5d2c093cc5..afb7a59024 100644 --- a/eo-runtime/src/main/java/org/eolang/PhDecorator.java +++ b/eo-runtime/src/main/java/org/eolang/PhDecorator.java @@ -1,23 +1,56 @@ +/* + * The MIT License (MIT) + * + * Copyright (c) 2016-2024 Objectionary.com + * + * Permission is hereby granted, free of charge, to any person obtaining a copy + * of this software and associated documentation files (the "Software"), to deal + * in the Software without restriction, including without limitation the rights + * to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + * copies of the Software, and to permit persons to whom the Software is + * furnished to do so, subject to the following conditions: + * + * The above copyright notice and this permission notice shall be included + * in all copies or substantial portions of the Software. + * + * THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + * IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + * FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT. IN NO EVENT SHALL THE + * AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + * LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + * OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + * SOFTWARE. + */ package org.eolang; -public abstract class PhDecorator implements Phi{ +/** + * An object, that decorates {@link Phi}. + * + * @since 0.36 + */ +public abstract class PhDecorator implements Phi { /** - * The original. + * The original Phi. + * @checkstyle VisibilityModifierCheck (5 lines) */ protected final Phi origin; + /** + * Ctor. + * @param phi The object + */ PhDecorator(final Phi phi) { this.origin = phi; } @Override - public boolean equals(final Object obj) { + public final boolean equals(final Object obj) { return this.origin.equals(obj); } @Override - public int hashCode() { + public final int hashCode() { return this.origin.hashCode(); } }