Skip to content

Commit

Permalink
Sonar fixes.
Browse files Browse the repository at this point in the history
  • Loading branch information
rakeshk15 committed Sep 11, 2017
1 parent 42f3e21 commit a9caa25
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 6 deletions.
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ addons:
jdk:
- oraclejdk8
script:
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package -P Apache-HttpClient,RESTEasy,AWS,MySQL,JDBC-CP-Hikari,JPA-EclipseLink sonar:sonar
- mvn clean org.jacoco:jacoco-maven-plugin:prepare-agent package -P RESTEasy,MySQL,JDBC-CP-Hikari,JPA-EclipseLink sonar:sonar
cache:
directories:
- '$HOME/.m2/repository'
Expand Down
7 changes: 3 additions & 4 deletions src/main/java/com/adeptj/runtime/osgi/FrameworkBootstrap.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,6 @@
import javax.servlet.ServletRegistration;
import java.io.IOException;
import java.io.InputStream;
import java.nio.file.Files;
import java.nio.file.Paths;
import java.util.HashMap;
import java.util.Map;
Expand Down Expand Up @@ -81,9 +80,9 @@ public void startFramework(ServletContext context) {
logger.info("Starting the OSGi Framework!!");
long startTime = System.nanoTime();
// config directory will not yet be created if framework is being provisioned first time.
boolean configDirExists = Files.exists(Paths.get(Configs.DEFAULT
.felix()
.getString(CFG_KEY_FELIX_CM_DIR)));
boolean configDirExists = Paths.get(Configs.DEFAULT.felix().getString(CFG_KEY_FELIX_CM_DIR))
.toFile()
.exists();
this.framework = this.createFramework(logger);
long startTimeFramework = System.nanoTime();
this.framework.start();
Expand Down
2 changes: 1 addition & 1 deletion src/main/java/com/adeptj/runtime/server/ShutdownHook.java
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
*/
final class ShutdownHook extends Thread {

private static final long DEFAULT_WAIT_TIME = 60 * 1000;
private static final long DEFAULT_WAIT_TIME = 60000L;

private static final String SYS_PROP_SHUTDOWN_WAIT_TIME = "shutdown.wait.time";

Expand Down

0 comments on commit a9caa25

Please sign in to comment.