Fix SAT warnings (#14202)
* Fix SAT warnings - checkstyle.ModifierOrderCheck - checkstyle.OneStatementPerLineCheck - checkstyle.NeedBracesCheck - PMD.UseStandardCharsets - PMD.UseCollectionIsEmpty - PMD.UnusedLocalVariable - PMD.SimplifyBooleanReturns where reasonable, suppress where readability is better without change - PMD.SimplifyBooleanExpressions * Include StandardCharsets Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -33,13 +33,7 @@ public class Util {
|
||||
* @return true or false
|
||||
*/
|
||||
public static boolean inRange(int value, int min, int max) {
|
||||
if (value < min) {
|
||||
return false;
|
||||
}
|
||||
if (value > max) {
|
||||
return false;
|
||||
}
|
||||
return true;
|
||||
return value >= min && value <= max;
|
||||
}
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user