Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
I
ioc_sixiang_license
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
zengtianlai3
ioc_sixiang_license
Commits
3969ca4c
Commit
3969ca4c
authored
Jul 16, 2022
by
zengtianlai3
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
删除不必要的null检查代码。
parent
92d8a681
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
10 deletions
+9
-10
ForwardClient.java
.../main/java/iot/sixiang/license/forward/ForwardClient.java
+9
-10
No files found.
license/src/main/java/iot/sixiang/license/forward/ForwardClient.java
View file @
3969ca4c
...
@@ -33,17 +33,16 @@ public class ForwardClient {
...
@@ -33,17 +33,16 @@ public class ForwardClient {
channelInitializer
=
new
ForwardChannelInitializer
(
handler
);
channelInitializer
=
new
ForwardChannelInitializer
(
handler
);
EventLoopGroup
eventLoopGroup
=
new
NioEventLoopGroup
();
EventLoopGroup
eventLoopGroup
=
new
NioEventLoopGroup
();
bootstrap
=
new
Bootstrap
();
bootstrap
=
new
Bootstrap
();
if
(
bootstrap
!=
null
)
{
try
{
try
{
bootstrap
bootstrap
.
channel
(
NioSocketChannel
.
class
)
.
channel
(
NioSocketChannel
.
class
)
.
option
(
ChannelOption
.
SO_KEEPALIVE
,
true
)
.
option
(
ChannelOption
.
SO_KEEPALIVE
,
true
)
.
group
(
eventLoopGroup
)
.
group
(
eventLoopGroup
)
.
handler
(
channelInitializer
);
.
handler
(
channelInitializer
);
}
catch
(
IllegalStateException
ex
)
{
}
catch
(
IllegalStateException
ex
)
{
log
.
error
(
ex
.
getMessage
());
log
.
error
(
ex
.
getMessage
());
}
}
}
}
}
public
void
startTcp
(
String
host
,
int
port
,
String
appId
)
{
public
void
startTcp
(
String
host
,
int
port
,
String
appId
)
{
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment