mirror of
https://github.com/Genymobile/scrcpy.git
synced 2026-04-21 01:33:36 +00:00
Remove MagicNumber checkstyle
There are a lot of "magic numbers" that we really don't want to extract as a constant. Until now, many @SuppressWarnings annotations were added, but it makes no sense to check for magic number if we silent the warnings everywhere.
This commit is contained in:
parent
4adf5fde6d
commit
5031b2c8ff
11 changed files with 0 additions and 20 deletions
|
|
@ -80,7 +80,6 @@ public class ControlMessageReaderTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("checkstyle:MagicNumber")
|
||||
public void testParseTouchEvent() throws IOException {
|
||||
ControlMessageReader reader = new ControlMessageReader();
|
||||
|
||||
|
|
@ -116,7 +115,6 @@ public class ControlMessageReaderTest {
|
|||
}
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("checkstyle:MagicNumber")
|
||||
public void testParseScrollEvent() throws IOException {
|
||||
ControlMessageReader reader = new ControlMessageReader();
|
||||
|
||||
|
|
|
|||
|
|
@ -8,7 +8,6 @@ import java.nio.charset.StandardCharsets;
|
|||
public class StringUtilsTest {
|
||||
|
||||
@Test
|
||||
@SuppressWarnings("checkstyle:MagicNumber")
|
||||
public void testUtf8Truncate() {
|
||||
String s = "aÉbÔc";
|
||||
byte[] utf8 = s.getBytes(StandardCharsets.UTF_8);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue