Java 17 features (H-M) (#15520)
- add missing @override - Java style array syntax - remove redundant modifiers - always move String constants to left side in comparisons - simplify lambda expressions and return statements - use replace instead of replaceAll w/o regex - instanceof matching and multiline strings - remove null check before instanceof Signed-off-by: Holger Friedrich <mail@holger-friedrich.de>
This commit is contained in:
@@ -315,7 +315,7 @@ public class IrCommand {
|
||||
* @return the byte buffer in Hex format
|
||||
*/
|
||||
public ByteBuffer toHEXByteBuffer() {
|
||||
byte hexDigit[] = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
|
||||
byte[] hexDigit = { '0', '1', '2', '3', '4', '5', '6', '7', '8', '9', 'A', 'B', 'C', 'D', 'E', 'F' };
|
||||
|
||||
ByteBuffer byteBuffer = toByteBuffer();
|
||||
byte[] toConvert = new byte[byteBuffer.limit()];
|
||||
|
||||
Reference in New Issue
Block a user