Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
amos-boot-biz
Project
Project
Details
Activity
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
项目统一框架
amos-boot-biz
Commits
c2c21787
Commit
c2c21787
authored
Feb 24, 2023
by
zhangsen
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
根据代码检查工具处理阻断漏洞 0224
parent
098cbf6c
Hide whitespace changes
Inline
Side-by-side
Showing
11 changed files
with
69 additions
and
86 deletions
+69
-86
AmosThreadPool.java
.../com/yeejoin/amos/fas/core/threadpool/AmosThreadPool.java
+6
-8
TriggerKeyQueue.java
...n/amos/latentdanger/business/trigger/TriggerKeyQueue.java
+6
-8
TikaUtils.java
...om/yeejoin/amos/latentdanger/business/util/TikaUtils.java
+4
-3
AmosThreadPool.java
...oin/amos/latentdanger/core/threadpool/AmosThreadPool.java
+6
-8
TriggerKeyQueue.java
...in/amos/maintenance/business/trigger/TriggerKeyQueue.java
+6
-8
AmosThreadPool.java
...join/amos/maintenance/core/threadpool/AmosThreadPool.java
+6
-8
TriggerKeyQueue.java
...yeejoin/amos/patrol/business/trigger/TriggerKeyQueue.java
+6
-8
AmosThreadPool.java
...m/yeejoin/amos/patrol/core/threadpool/AmosThreadPool.java
+6
-8
TriggerKeyQueue.java
...in/amos/supervision/business/trigger/TriggerKeyQueue.java
+6
-8
AmosThreadPool.java
...join/amos/supervision/core/threadpool/AmosThreadPool.java
+6
-8
AmosThreadPool.java
...s/boot/module/tzs/biz/core/threadpool/AmosThreadPool.java
+11
-11
No files found.
amos-boot-module/amos-boot-module-biz/amos-boot-module-fas-biz/src/main/java/com/yeejoin/amos/fas/core/threadpool/AmosThreadPool.java
View file @
c2c21787
...
@@ -21,7 +21,7 @@ public class AmosThreadPool {
...
@@ -21,7 +21,7 @@ public class AmosThreadPool {
/**
/**
* 单例
* 单例
*/
*/
private
static
AmosThreadPool
instance
;
private
static
volatile
AmosThreadPool
instance
;
/**
/**
* 执行服务
* 执行服务
...
@@ -34,14 +34,12 @@ public class AmosThreadPool {
...
@@ -34,14 +34,12 @@ public class AmosThreadPool {
* @return
* @return
*/
*/
public
static
AmosThreadPool
getInstance
()
{
public
static
AmosThreadPool
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
AmosThreadPool
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
AmosThreadPool
.
class
)
{
instance
=
new
AmosThreadPool
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
AmosThreadPool
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/trigger/TriggerKeyQueue.java
View file @
c2c21787
...
@@ -17,7 +17,7 @@ public class TriggerKeyQueue {
...
@@ -17,7 +17,7 @@ public class TriggerKeyQueue {
/**
/**
* 单例
* 单例
*/
*/
private
static
TriggerKeyQueue
instance
;
private
static
volatile
TriggerKeyQueue
instance
;
/**
/**
* 队列
* 队列
...
@@ -42,14 +42,12 @@ public class TriggerKeyQueue {
...
@@ -42,14 +42,12 @@ public class TriggerKeyQueue {
* @return
* @return
*/
*/
public
static
TriggerKeyQueue
getInstance
()
{
public
static
TriggerKeyQueue
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
TriggerKeyQueue
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
TriggerKeyQueue
.
class
)
{
instance
=
new
TriggerKeyQueue
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
TriggerKeyQueue
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/business/util/TikaUtils.java
View file @
c2c21787
...
@@ -52,15 +52,16 @@ public class TikaUtils {
...
@@ -52,15 +52,16 @@ public class TikaUtils {
ContentHandler
handler
=
new
ToHTMLContentHandler
();
ContentHandler
handler
=
new
ToHTMLContentHandler
();
AutoDetectParser
parser
=
new
AutoDetectParser
();
AutoDetectParser
parser
=
new
AutoDetectParser
();
Metadata
metadata
=
new
Metadata
();
Metadata
metadata
=
new
Metadata
();
try
(
InputStream
stream
=
new
FileInputStream
(
new
File
(
fileName
));)
{
try
{
InputStream
stream
=
new
FileInputStream
(
new
File
(
fileName
));
InputStream
stream2
=
new
FileInputStream
(
new
File
(
fileName
));
parser
.
parse
(
stream
,
handler
,
metadata
);
parser
.
parse
(
stream
,
handler
,
metadata
);
FileHelper
.
writeFile
(
handler
.
toString
(),
outPutFile
+
".html"
);
FileHelper
.
writeFile
(
handler
.
toString
(),
outPutFile
+
".html"
);
FileHelper
.
parse
(
outPutFile
+
".html"
);
FileHelper
.
parse
(
outPutFile
+
".html"
);
return
null
;
}
catch
(
Exception
e
)
{
}
catch
(
Exception
e
)
{
e
.
printStackTrace
();
e
.
printStackTrace
();
}
}
return
null
;
return
""
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-latentdanger-biz/src/main/java/com/yeejoin/amos/latentdanger/core/threadpool/AmosThreadPool.java
View file @
c2c21787
...
@@ -21,7 +21,7 @@ public class AmosThreadPool {
...
@@ -21,7 +21,7 @@ public class AmosThreadPool {
/**
/**
* 单例
* 单例
*/
*/
private
static
AmosThreadPool
instance
;
private
static
volatile
AmosThreadPool
instance
;
/**
/**
* 执行服务
* 执行服务
...
@@ -34,14 +34,12 @@ public class AmosThreadPool {
...
@@ -34,14 +34,12 @@ public class AmosThreadPool {
* @return
* @return
*/
*/
public
static
AmosThreadPool
getInstance
()
{
public
static
AmosThreadPool
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
AmosThreadPool
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
AmosThreadPool
.
class
)
{
instance
=
new
AmosThreadPool
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
AmosThreadPool
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/business/trigger/TriggerKeyQueue.java
View file @
c2c21787
...
@@ -17,7 +17,7 @@ public class TriggerKeyQueue {
...
@@ -17,7 +17,7 @@ public class TriggerKeyQueue {
/**
/**
* 单例
* 单例
*/
*/
private
static
TriggerKeyQueue
instance
;
private
static
volatile
TriggerKeyQueue
instance
;
/**
/**
* 队列
* 队列
...
@@ -42,14 +42,12 @@ public class TriggerKeyQueue {
...
@@ -42,14 +42,12 @@ public class TriggerKeyQueue {
* @return
* @return
*/
*/
public
static
TriggerKeyQueue
getInstance
()
{
public
static
TriggerKeyQueue
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
TriggerKeyQueue
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
TriggerKeyQueue
.
class
)
{
instance
=
new
TriggerKeyQueue
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
TriggerKeyQueue
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-maintenance-biz/src/main/java/com/yeejoin/amos/maintenance/core/threadpool/AmosThreadPool.java
View file @
c2c21787
...
@@ -20,7 +20,7 @@ public class AmosThreadPool {
...
@@ -20,7 +20,7 @@ public class AmosThreadPool {
/**
/**
* 单例
* 单例
*/
*/
private
static
AmosThreadPool
instance
;
private
static
volatile
AmosThreadPool
instance
;
/**
/**
* 执行服务
* 执行服务
...
@@ -33,14 +33,12 @@ public class AmosThreadPool {
...
@@ -33,14 +33,12 @@ public class AmosThreadPool {
* @return
* @return
*/
*/
public
static
AmosThreadPool
getInstance
()
{
public
static
AmosThreadPool
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
AmosThreadPool
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
AmosThreadPool
.
class
)
{
instance
=
new
AmosThreadPool
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
AmosThreadPool
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/business/trigger/TriggerKeyQueue.java
View file @
c2c21787
...
@@ -17,7 +17,7 @@ public class TriggerKeyQueue {
...
@@ -17,7 +17,7 @@ public class TriggerKeyQueue {
/**
/**
* 单例
* 单例
*/
*/
private
static
TriggerKeyQueue
instance
;
private
static
volatile
TriggerKeyQueue
instance
;
/**
/**
* 队列
* 队列
...
@@ -42,14 +42,12 @@ public class TriggerKeyQueue {
...
@@ -42,14 +42,12 @@ public class TriggerKeyQueue {
* @return
* @return
*/
*/
public
static
TriggerKeyQueue
getInstance
()
{
public
static
TriggerKeyQueue
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
TriggerKeyQueue
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
TriggerKeyQueue
.
class
)
{
instance
=
new
TriggerKeyQueue
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
TriggerKeyQueue
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-patrol-biz/src/main/java/com/yeejoin/amos/patrol/core/threadpool/AmosThreadPool.java
View file @
c2c21787
...
@@ -21,7 +21,7 @@ public class AmosThreadPool {
...
@@ -21,7 +21,7 @@ public class AmosThreadPool {
/**
/**
* 单例
* 单例
*/
*/
private
static
AmosThreadPool
instance
;
private
static
volatile
AmosThreadPool
instance
;
/**
/**
* 执行服务
* 执行服务
...
@@ -34,14 +34,12 @@ public class AmosThreadPool {
...
@@ -34,14 +34,12 @@ public class AmosThreadPool {
* @return
* @return
*/
*/
public
static
AmosThreadPool
getInstance
()
{
public
static
AmosThreadPool
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
AmosThreadPool
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
AmosThreadPool
.
class
)
{
instance
=
new
AmosThreadPool
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
AmosThreadPool
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/business/trigger/TriggerKeyQueue.java
View file @
c2c21787
...
@@ -17,7 +17,7 @@ public class TriggerKeyQueue {
...
@@ -17,7 +17,7 @@ public class TriggerKeyQueue {
/**
/**
* 单例
* 单例
*/
*/
private
static
TriggerKeyQueue
instance
;
private
static
volatile
TriggerKeyQueue
instance
;
/**
/**
* 队列
* 队列
...
@@ -42,14 +42,12 @@ public class TriggerKeyQueue {
...
@@ -42,14 +42,12 @@ public class TriggerKeyQueue {
* @return
* @return
*/
*/
public
static
TriggerKeyQueue
getInstance
()
{
public
static
TriggerKeyQueue
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
TriggerKeyQueue
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
TriggerKeyQueue
.
class
)
{
instance
=
new
TriggerKeyQueue
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
TriggerKeyQueue
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-module/amos-boot-module-biz/amos-boot-module-supervision-biz/src/main/java/com/yeejoin/amos/supervision/core/threadpool/AmosThreadPool.java
View file @
c2c21787
...
@@ -20,7 +20,7 @@ public class AmosThreadPool {
...
@@ -20,7 +20,7 @@ public class AmosThreadPool {
/**
/**
* 单例
* 单例
*/
*/
private
static
AmosThreadPool
instance
;
private
static
volatile
AmosThreadPool
instance
;
/**
/**
* 执行服务
* 执行服务
...
@@ -33,14 +33,12 @@ public class AmosThreadPool {
...
@@ -33,14 +33,12 @@ public class AmosThreadPool {
* @return
* @return
*/
*/
public
static
AmosThreadPool
getInstance
()
{
public
static
AmosThreadPool
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
AmosThreadPool
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
AmosThreadPool
.
class
)
{
instance
=
new
AmosThreadPool
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
AmosThreadPool
();
}
}
return
instance
;
return
instance
;
}
}
...
...
amos-boot-system-tzs/amos-boot-module-tzs-biz/src/main/java/com/yeejoin/amos/boot/module/tzs/biz/core/threadpool/AmosThreadPool.java
View file @
c2c21787
...
@@ -16,30 +16,30 @@ public class AmosThreadPool {
...
@@ -16,30 +16,30 @@ public class AmosThreadPool {
*/
*/
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
AmosThreadPool
.
class
);
private
static
final
Logger
log
=
LoggerFactory
.
getLogger
(
AmosThreadPool
.
class
);
/**
* 单例
*/
private
static
AmosThreadPool
instance
;
/**
/**
* 执行服务
* 执行服务
*/
*/
private
static
ExecutorService
executorService
;
private
static
ExecutorService
executorService
;
/**
* 单例
*/
private
static
volatile
AmosThreadPool
instance
;
/**
/**
* 获取单例
* 获取单例
*
*
* @return
* @return
*/
*/
public
static
AmosThreadPool
getInstance
()
{
public
static
AmosThreadPool
getInstance
()
{
if
(
null
!=
instance
)
{
if
(
instance
==
null
)
{
return
instance
;
synchronized
(
AmosThreadPool
.
class
)
{
}
if
(
instance
==
null
)
{
synchronized
(
AmosThreadPool
.
class
)
{
instance
=
new
AmosThreadPool
();
if
(
instance
!=
null
)
{
}
return
instance
;
}
}
instance
=
new
AmosThreadPool
();
}
}
return
instance
;
return
instance
;
}
}
...
...
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