Skip to content

Commit

Permalink
#2863 fix qulice warnings
Browse files Browse the repository at this point in the history
  • Loading branch information
c71n93 committed Mar 11, 2024
1 parent 3842823 commit 74c589c
Showing 1 changed file with 37 additions and 4 deletions.
41 changes: 37 additions & 4 deletions eo-runtime/src/main/java/org/eolang/PhDecorator.java
Original file line number Diff line number Diff line change
@@ -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();
}
}

0 comments on commit 74c589c

Please sign in to comment.