Skip to content

Commit

Permalink
Merge pull request apolloconfig#617 from nobodyiam/fix-coverity-bug
Browse files Browse the repository at this point in the history
try to fix coverity bug
  • Loading branch information
nobodyiam authored May 12, 2017
2 parents c511583 + 4010a85 commit 041de90
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
* @author Jason Song([email protected])
*/
public class ApolloInjector {
private static Injector s_injector;
private static volatile Injector s_injector;
private static Object lock = new Object();

private static Injector getInjector() {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 041de90

Please sign in to comment.