refactor: remove redundant type casts

This commit is contained in:
broDom
2017-07-03 17:17:58 +02:00
parent 656288857b
commit 96f40485d1
2 changed files with 9 additions and 9 deletions

View File

@@ -229,7 +229,7 @@ public final class IOUtil
while (byteCount > 0)
{
int max = (byteCount < bufferSize)
? (int) byteCount
? byteCount
: bufferSize;
len = in.read(buffer, 0, max);

View File

@@ -71,8 +71,8 @@ public class ScmModuleTest
assertThat(
module.getExtensions(),
containsInAnyOrder(
(Class<?>) String.class,
(Class<?>) Integer.class
String.class,
Integer.class
)
);
assertThat(
@@ -86,8 +86,8 @@ public class ScmModuleTest
assertThat(
module.getEvents(),
containsInAnyOrder(
(Class<?>) String.class,
(Class<?>) Boolean.class
String.class,
Boolean.class
)
);
assertThat(
@@ -100,15 +100,15 @@ public class ScmModuleTest
assertThat(
module.getRestProviders(),
containsInAnyOrder(
(Class<?>) Integer.class,
(Class<?>) Long.class
Integer.class,
Long.class
)
);
assertThat(
module.getRestResources(),
containsInAnyOrder(
(Class<?>) Float.class,
(Class<?>) Double.class
Float.class,
Double.class
)
);
//J+