Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
A
apollo
Project
Overview
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
openSource
apollo
Commits
4010a858
Commit
4010a858
authored
May 12, 2017
by
nobodyiam
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
try to fix coverity bug 'Check of thread-shared field evades lock acquisition'
parent
c5115833
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
2 additions
and
2 deletions
+2
-2
ApolloInjector.java
...java/com/ctrip/framework/apollo/build/ApolloInjector.java
+1
-1
Foundation.java
.../main/java/com/ctrip/framework/foundation/Foundation.java
+1
-1
No files found.
apollo-client/src/main/java/com/ctrip/framework/apollo/build/ApolloInjector.java
View file @
4010a858
...
...
@@ -9,7 +9,7 @@ import com.ctrip.framework.foundation.internals.ServiceBootstrap;
* @author Jason Song(song_s@ctrip.com)
*/
public
class
ApolloInjector
{
private
static
Injector
s_injector
;
private
static
volatile
Injector
s_injector
;
private
static
Object
lock
=
new
Object
();
private
static
Injector
getInjector
()
{
...
...
apollo-core/src/main/java/com/ctrip/framework/foundation/Foundation.java
View file @
4010a858
...
...
@@ -13,7 +13,7 @@ public abstract class Foundation {
private
static
final
Logger
logger
=
LoggerFactory
.
getLogger
(
Foundation
.
class
);
private
static
Object
lock
=
new
Object
();
private
static
ProviderManager
s_manager
;
private
static
volatile
ProviderManager
s_manager
;
// Encourage early initialization and fail early if it happens.
static
{
...
...
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