Skip to content

Commit

Permalink
add new use case from ISSUE 9 of ecoCode-java repository
Browse files Browse the repository at this point in the history
  • Loading branch information
dedece35 committed Jan 25, 2024
1 parent d9cfbd2 commit c57f877
Showing 1 changed file with 27 additions and 0 deletions.
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
/*
* ecoCode - Java language - Provides rules to reduce the environmental footprint of your Java programs
* Copyright © 2023 Green Code Initiative (https://www.ecocode.io)
*
* This program is free software: you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation, either version 3 of the License, or
* (at your option) any later version.
*
* This program is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
* GNU General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program. If not, see <http://www.gnu.org/licenses/>.
*/
package fr.greencodeinitiative.java.checks;

class AvoidMultipleIfElseStatementNotBlock {

public boolean equals(Object obj) {
if (this == obj)
return true;
}

}

0 comments on commit c57f877

Please sign in to comment.